Skip to content

Commit

Permalink
wallet-ext: fix crypto mock in test setup (MystenLabs#6695)
Browse files Browse the repository at this point in the history
* it breaks the tests since now crypto seems to be defined
  • Loading branch information
pchrysochoidis authored Dec 9, 2022
1 parent f93b59f commit b9b6406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wallet/testSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { webcrypto } from 'crypto';

if (!globalThis.defined) {
if (!globalThis.crypto) {
globalThis.crypto = webcrypto as Crypto;
}

Expand Down

0 comments on commit b9b6406

Please sign in to comment.