Skip to content

Commit 69ea2fc

Browse files
authoredNov 5, 2021
feat: add chai-checkmark (#905)
This extension is used in the libp2p-interface compliance tests
1 parent 492b06f commit 69ea2fc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"chai": "^4.3.4",
7373
"chai-as-promised": "^7.1.1",
7474
"chai-bytes": "^0.1.2",
75+
"chai-checkmark": "^1.0.1",
7576
"chai-parentheses": "^0.0.2",
7677
"chai-string": "^1.5.0",
7778
"chai-subset": "^1.6.0",

‎utils/chai.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ const chaiParentheses = require('chai-parentheses')
66
const chaiSubset = require('chai-subset')
77
const chaiBytes = require('chai-bytes')
88
const chaiString = require('chai-string')
9+
// @ts-expect-error no types
10+
const chaiCheckmark = require('chai-checkmark')
911

1012
// Do not reorder these statements - https://github.com/chaijs/chai/issues/1298
1113
chai.use(chaiAsPromised)
1214
chai.use(chaiParentheses)
1315
chai.use(chaiSubset)
1416
chai.use(chaiBytes)
1517
chai.use(chaiString)
18+
chai.use(chaiCheckmark)
1619

1720
const expect = chai.expect
1821
const assert = chai.assert
@@ -28,7 +31,8 @@ module.exports = {
2831
chaiParentheses,
2932
chaiSubset,
3033
chaiBytes,
31-
chaiString
34+
chaiString,
35+
chaiCheckmark
3236
}
3337
}
3438

0 commit comments

Comments
 (0)
Please sign in to comment.