assert-set
v0.1.0
Published
Assertion with Sets
Downloads
12
Readme
assert-set
Assertion with Set
s.
Installation
npm
npm install -D assert-set
Usage
const assertSet = require("assert-set");
assertSet.equal(
[{foo: 1}, {bar: 2}],
[{bar: 2}, {foo: 1}]
); // success
assertSet.equal(
[{foo: 1}, {bar: 2}],
[{bar: 3}, {foo: 1}]
); // error
API
equal
equal(actual: Iterable, expected: Iterable, message?) => void
Assert if actual
deeply equals expected
. The item can be out of order.
Changelog
0.1.0 (Oct 4, 2019)
- First release.