UNPKG

scalra

Version:

node.js framework to prototype and scale rapidly

12 lines (10 loc) 321 B
// some other mocha examples as well var should = require('should'); describe('mocha example 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); }) }) })