chai-contained

0.0.3 • Public • Published

chai-contained

Usage example:

var chai = require('chai')
  , expect = chai.expect
  , chaiContained = require('chai-contained');

expect('foo').to.be.containedIn(['foo', 'bar']); // will pass
expect('foo').to.be.containedIn(['noFoo', 'baz']); // will fail

The later will fail with message: AssertionError: expected 'foo' to be one of the [ 'noFoo', 'baz' ]

Readme

Keywords

Package Sidebar

Install

npm i chai-contained

Weekly Downloads

97

Version

0.0.3

License

ISC

Last publish

Collaborators

  • sceonteam
  • googoid
  • david.kasparov