Skip to content

Commit 5cfef2c

Browse files
authoredNov 6, 2021
chore: remove chai-checkmark (#906)
Chai-checkmark doesn't work well with promise based flow control as it requires a `done` function and mocha objects to the use of both `done` and `async` in test function signatures. Probably better to just use await instead. As a bonus it also makes the logic in a test easier to follow.
1 parent c444787 commit 5cfef2c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed
 

‎package.json

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

‎utils/chai.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@ 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')
119

1210
// Do not reorder these statements - https://github.com/chaijs/chai/issues/1298
1311
chai.use(chaiAsPromised)
1412
chai.use(chaiParentheses)
1513
chai.use(chaiSubset)
1614
chai.use(chaiBytes)
1715
chai.use(chaiString)
18-
chai.use(chaiCheckmark)
1916

2017
const expect = chai.expect
2118
const assert = chai.assert
@@ -31,8 +28,7 @@ module.exports = {
3128
chaiParentheses,
3229
chaiSubset,
3330
chaiBytes,
34-
chaiString,
35-
chaiCheckmark
31+
chaiString
3632
}
3733
}
3834

0 commit comments

Comments
 (0)
Please sign in to comment.