Esempio n. 1
0
File: is.js Progetto: agj/agj-js
			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();
			});
Esempio n. 2
0
File: is.js Progetto: agj/agj-js
				var test = function () {
					is.in(new Date(), 'whatever');
				};