Skip to content

Instantly share code, notes, and snippets.

@SibeeshVenu
Created October 21, 2018 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SibeeshVenu/21a644fcef39eabb5b2fda686cadfe5e to your computer and use it in GitHub Desktop.
Save SibeeshVenu/21a644fcef39eabb5b2fda686cadfe5e to your computer and use it in GitHub Desktop.
var assert = require('assert');
describe('Array', function() {
describe('#indexOf()', function() {
it('should return -1 when the value is not present', function() {
assert.equal([1,2,3].indexOf(4), -1);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment