Skip to content

Commit

Permalink
test(ardrive auth test): fixes unit test PE-4477
Browse files Browse the repository at this point in the history
  • Loading branch information
matibat committed Sep 26, 2023
1 parent 26f5c0a commit 543e2e4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/authentication/ardrive_auth_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ void main() {
id: 'some_id',
rootFolderId: 'some_id',
));

when(() => mockArConnectService.checkPermissions()).thenAnswer(
(invocation) => Future.value(true),
);
when(() => mockArConnectService.disconnect()).thenAnswer(
(invocation) => Future.value(null),
);
});

// test `ArDriveAuth`
Expand Down Expand Up @@ -643,7 +650,7 @@ void main() {
when(() => mockArweaveService.getFirstPrivateDriveTxId(wallet,
maxRetries: any(named: 'maxRetries')))
.thenAnswer((_) async => 'some_id');
// mock cripto derive drive key
// mock crypto derive drive key
when(
() => mockArDriveCrypto.deriveDriveKey(
wallet,
Expand Down

0 comments on commit 543e2e4

Please sign in to comment.