Skip to content

Commit 42ebec5

Browse files
committed
fix: Setup chai-as-promised for mocha tests
1 parent 2252f27 commit 42ebec5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/shim.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ if (typeof localStorage !== 'undefined') {
3434
// If using the crypto shim, uncomment the following line to ensure
3535
// crypto is loaded first, so it can populate global.crypto
3636
require('crypto');
37+
38+
// Setup chai-as-promised for mocha tests
39+
const chai = require('chai');
40+
const chaiAsPromised = require('chai-as-promised');
41+
chai.use(chaiAsPromised);

0 commit comments

Comments
 (0)