Skip to content

Commit 5671261

Browse files
committed
test: improve removeCode test for non-existent id
1 parent f422c60 commit 5671261

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/src/services/verification_code_storage_service_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ void main() {
8686
});
8787

8888
test('removeCode does nothing for non-existent identifier', () async {
89-
// Expect no errors when removing a non-existent code
90-
await expectLater(
91-
() => service.removeCode('[email protected]'),
92-
completes,
93-
);
89+
// Expect no errors when removing a non-existent code.
90+
// Simply call the function; if it throws, the test fails.
91+
await service.removeCode('[email protected]');
92+
// Optionally add a dummy expect to make the test runner happy if needed
93+
expect(true, isTrue);
9494
});
9595

9696
// Note: Testing the automatic cleanup timer (`_cleanupExpiredCodes`)

0 commit comments

Comments
 (0)