test.js 234 B

12345678
  1. var assert = require('assert');
  2. describe('Array', function() {
  3. describe('#indexOf()', function() {
  4. it('should return -1 when the value is not present', function() {
  5. assert.equal([1, 2, 3].indexOf(4), -1);
  6. });
  7. });
  8. });