You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
3 years ago
|
/* global require */
|
||
|
/* global describe, it */
|
||
|
var assert = require("assert")
|
||
|
describe('Array', function() {
|
||
|
describe('#indexOf()', function() {
|
||
|
it('should return -1 when the value is not present', function() {
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(5))
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(0))
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
describe('Array', function() {
|
||
|
describe('#indexOf()', function() {
|
||
|
it('should return -1 when the value is not present', function() {
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(5))
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(0))
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
describe('Array', function() {
|
||
|
describe('#indexOf()', function() {
|
||
|
it('should return -1 when the value is not present', function() {
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(5))
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(0))
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
describe('Array', function() {
|
||
|
describe('#indexOf()', function() {
|
||
|
it('should return -1 when the value is not present', function() {
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(5))
|
||
|
assert.equal(-1, [1, 2, 3].indexOf(0))
|
||
|
})
|
||
|
})
|
||
|
})
|