Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Nov 13, 2021
1 parent f6acea5 commit 43e0129
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/test-crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ describes.realWin('crypto-impl', {}, (env) => {
);

it('native API result should exactly equal to crypto lib result', () => {
const fakeWin = {...win, crypto: null};
return Promise.all([
createCrypto(win).sha384('abc'),
createCrypto({}).sha384('abc'),
createCrypto(fakeWin).sha384('abc'),
]).then((results) => {
expect(results[0]).to.jsonEqual(results[1]);
});
Expand Down

0 comments on commit 43e0129

Please sign in to comment.