0.1.0 • Published 5 years ago

assert-set v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

assert-set

Build Status codecov

Assertion with Sets.

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.
0.1.0

5 years ago