it("in", function () { expect( is.in({ a: 'one', b: 'two' }, 'two') ).toBe( true ); expect( is.in(['one', 'two'], 'two') ).toBe( true ); var test = function () { is.in(new Date(), 'whatever'); }; expect( test ).toThrow(); });
var test = function () { is.in(new Date(), 'whatever'); };