From 988af58f388ad3be6ef97920fcf21fca4dde72b9 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Sat, 10 Aug 2024 21:42:30 -0700 Subject: [PATCH] fix: loadAuthToken test --- packages/cli/test/net/auth_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/test/net/auth_test.dart b/packages/cli/test/net/auth_test.dart index 42655ff2..c28a52d5 100644 --- a/packages/cli/test/net/auth_test.dart +++ b/packages/cli/test/net/auth_test.dart @@ -9,6 +9,7 @@ class _MockDatabase extends Mock implements Database {} void main() { test('loadAuthToken', () async { final db = _MockDatabase(); + when(db.getAuthToken).thenAnswer((_) async => null); expect(() => defaultApi(db), throwsException); when(db.getAuthToken).thenAnswer((_) async => 'token'); final api = await defaultApi(db);