Skip to content

Commit

Permalink
fix: loadAuthToken test
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Aug 11, 2024
1 parent dfbff0d commit 988af58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/test/net/auth_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 988af58

Please sign in to comment.