1.1.0 • Published 6 years ago

chai-hiff v1.1.0

Weekly downloads
97
License
MIT
Repository
github
Last release
6 years ago

Chai Hiff

Build Status

HTML matching assertions for Chai.js.

Installation

npm i --save-dev chai-hiff
import chai from 'chai';
import chaiHiff from 'chai-hiff';

chai.use(chaiHiff);

API

.hiffEqual(expected)

Expect the expected to equal the actual.

expect('<html></html>').to.hiffEqual('<html></html>');

.not.hiffEqual(expected)

Expect the expected to not equal the actual.

expect('<html></html>').to.hiffEqual('<html></html>');

.hiff.equal(expected)

Expect the expected to equal the actual.

expect('<html></html>').to.hiff.equal('<html></html>');

.not.hiff.equal(expected)

Expect the expected to not equal the actual.

expect('<html></html>').to.not.hiff.equal('<html></html>');
1.1.0

6 years ago

1.0.0

8 years ago

0.0.1

8 years ago