JSPM

assert-set

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 136
  • Score
    100M100P100Q80243F
  • License MIT

Assertion with Sets

Package Exports

  • assert-set

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (assert-set) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.