0.0.3 • Published 8 years ago

chai-contained v0.0.3

Weekly downloads
266
License
ISC
Repository
github
Last release
8 years ago

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' ]

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago