Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created December 30, 2018 06:30
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 amandeepmittal/d62e06b00102fcf3cf2dea71252aaa04 to your computer and use it in GitHub Desktop.
Save amandeepmittal/d62e06b00102fcf3cf2dea71252aaa04 to your computer and use it in GitHub Desktop.
const 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