chai-contained
使用例
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
以下はメッセージAssertionError: expected 'foo' to be one of the [ 'noFoo', 'baz' ]
とともに失敗します。