Skip to content

Commit

Permalink
Fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolay-vasilev-prime committed Dec 12, 2024
1 parent 9cfba4b commit d2480f8
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@ void main() {
verify(repository.writePinToStorage(pinKey, Stubs.pin)).called(1);
});

test('savePinCodeInSecureStorage should return false', () async {
const pinKey = VerifyPinCodeService.storedPin;

when(repository.readPinFromStorage(key: pinKey))
.thenAnswer((_) async => null);

final result =
await permissionsService.savePinCodeInSecureStorage(pinKey);

expect(result, false);
verify(repository.readPinFromStorage(key: pinKey)).called(1);
});

test('checkIsPinCreated should return false', () async {
when(repository.getPinCode()).thenAnswer((_) async => null);

Expand Down

0 comments on commit d2480f8

Please sign in to comment.