We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f422c60 commit 5671261Copy full SHA for 5671261
test/src/services/verification_code_storage_service_test.dart
@@ -86,11 +86,11 @@ void main() {
86
});
87
88
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('nonexistent@example.com'),
92
- completes,
93
- );
+ // Expect no errors when removing a non-existent code.
+ // Simply call the function; if it throws, the test fails.
+ await service.removeCode('nonexistent@example.com');
+ // Optionally add a dummy expect to make the test runner happy if needed
+ expect(true, isTrue);
94
95
96
// Note: Testing the automatic cleanup timer (`_cleanupExpiredCodes`)
0 commit comments