I am testing for the first time, writing a test case
var should = require("should") describe('Array', function(){ describe('#indexOf()', function(){ it('should return -1 when the value is not present',function(){ [1,2,3].indexOf(5).should.equal(-1); [1,2,3].indexOf(0).should.equal(-1); }) }) })
it gives me 0 walkthrough
0 passing (1ms)
but why should he show 1 pass
Nitin
source share