cafemocha_test.js 282 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 var assert = require('assert'); describe('Array', function(){ before(function(){ // ... }); describe('#indexOf()', function(){ it('should return -1 when not present', function(){ [1,2,3].indexOf(4).should.equal(-1); }); }); });