tape-arr-equals

2.1.2 • Public • Published

tape-arr-equals

Tape extension that adds array equality to tape.

Install

~ npm install tape-arr-equals

Usage

Checkout tests/index.test.js

import addAssertions from 'extend-tape';
import arrEquals from '..';
import tape from 'tape';

const test = addAssertions(tape, {arrEquals});

test(`------------ tape-arr-equals module test ------------`, (swear) => {
  swear.plan(2);
  swear.comment(`---- tape-arr-equals module test: arrEq ----`);
  swear.arrEquals([0, 1, 2, 3], [0, 1, 2, 3], `equal arrays are equal`);
  swear.arrEquals([0, 1, 2, 3], [1, 2, 3, 0], `different order is equal`);
});

Readme

Keywords

Package Sidebar

Install

npm i tape-arr-equals

Weekly Downloads

7

Version

2.1.2

License

ISC

Last publish

Collaborators

  • brwnrclse