10 lines
266 B
JavaScript
10 lines
266 B
JavaScript
/* global it, describe */
|
|
const assert = require('assert');
|
|
describe('Array', () => {
|
|
describe('#indexOf()', () => {
|
|
it('should return -1 when the value is not present', () => {
|
|
assert.equal(-1, [1, 2, 3].indexOf(4));
|
|
});
|
|
});
|
|
});
|