Skip to content

Commit

Permalink
fix: broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
r-near committed Nov 23, 2024
1 parent 2560d4a commit 41ccacf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/accounts/test/account.access_key.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ test('view account details after adding access keys', async() => {
publicKey: keyPair2.getPublicKey().toString(),
}];

// @ts-expect-error test input
expect(JSON.stringify(details.authorizedApps.toSorted((a, b) => a.amount < b.amount))).toEqual(JSON.stringify(authorizedApps.toSorted((a, b) => a.amount < b.amount)));
expect(details.authorizedApps).toEqual(expect.arrayContaining(authorizedApps));
expect(authorizedApps).toEqual(expect.arrayContaining(details.authorizedApps));
expect(details.authorizedApps).toHaveLength(authorizedApps.length);
});

test('loading account after adding a full key', async() => {
Expand Down

0 comments on commit 41ccacf

Please sign in to comment.