describe('toContain', function() { it('passes if the expected item is an element in the actual array', function() { expect([1, 2, 3]).toContain(2); }); it('fails if an element in not in the array', function() { expect([1, 2, 3]).not.toContain(4); }); }); execJasmine();