Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
r4vn committed Apr 2, 2024
1 parent 014890f commit eb69103
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions features/keychain/module/__tests__/memoized-keychain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,15 @@ describe('MemoizedKeychain', () => {
const { keychain, storage } = await setup({ prefilledCache: false })

await expect(keychain.exportKey(keyId)).resolves.toEqual(retrievedKey)
expect(storage.set).toHaveBeenCalledWith(CACHE_KEY, BJSON.stringify({
[stableStringify(keyId)]: {
xpub: retrievedKey.xpub,
publicKey: retrievedKey.publicKey,
},
}))
expect(storage.set).toHaveBeenCalledWith(
CACHE_KEY,
BJSON.stringify({
[stableStringify(keyId)]: {
xpub: retrievedKey.xpub,
publicKey: retrievedKey.publicKey,
},
})
)
})

it('should properly clear all caches', async () => {
Expand Down

0 comments on commit eb69103

Please sign in to comment.