test(auth): fix mock

This commit is contained in:
Hugo Pointcheval 2023-04-13 23:44:25 +02:00
parent 0a13c67058
commit 6152436411
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC

View File

@ -67,6 +67,9 @@ void main() {
when(() => authenticationRepository.sessionStream()).thenAnswer(
(_) => const Stream.empty(),
);
when(() => authenticationRepository.checkForCachedAccount()).thenAnswer(
(_) => Future<void>.value(),
);
});
test('initial auth state is `unknown`', () {