A jscodeshift codemod that transforms from chai to Node assert.
$ npm install -g jscodeshift $ npm install chai-to-assert $ jscodeshift -t node_modules/chai-to-assert/lib/bdd-api-to-node-assert.js target-dir
expect
should
.ok
.true
.false
.null
.undefined
.exist
.NaN
.finite
.extensible
.sealed
.frozen
.a(type)
(alias an
) (only for primitives and null).lengthOf(value)
(alias .length
).equal(value)
(alias .equals
, .eq
).eql(value)
(alias .eqls
).match(regexp)
(alias .matches
).above(value)
(alias .gt
, .greaterThan
).least(value)
(alias .gte
).below(value)
(alias .lt
, .lessThan
).most(value)
(alias .lte
).within(start, finish)
.closeTo(expected, delta)
(alias .approximately
).property(name, [value])
.ownProperty(name, [value])
(alias .haveOwnProperty
).ownPropertyDescriptor(name, [descriptor])
(alias .haveOwnPropertyDescriptor
).instanceof(constructor)
(alias .instanceOf
).throw([errorLike], [errMsgMatcher])
(alias .throws
, .Throw
).respondTo(method)
(alias .respondsTo
).satisfy(predicate)
(alias .satisfies
).string(string)
.oneOf(list)
Licensed under the MIT license.
AboutA jscodeshift codemod that transforms from chai to Node assert
Resources License Stars Watchers ForksYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4