Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should return -1 when the value is not present', function () {
var zero = 0, two = 2;
assert(assert._expr(assert._capt(assert._capt(assert._capt(this.ary, 'arguments/0/left/callee/object').indexOf(assert._capt(zero, 'arguments/0/left/arguments/0')), 'arguments/0/left') === assert._capt(two, 'arguments/0/right'), 'arguments/0'), {
content: 'assert(this.ary.indexOf(zero) === two)',
filepath: 'test/fixtures/subdir/test_in_subdir.js',
line: 10
}));
});
it('should return index when the value is present', function () {
it('should return index when the value is present', function () {
var minusOne = -1, two = 2;
assert.ok(assert._expr(assert._capt(assert._capt(assert._capt(this.ary, 'arguments/0/left/callee/object').indexOf(assert._capt(two, 'arguments/0/left/arguments/0')), 'arguments/0/left') === assert._capt(minusOne, 'arguments/0/right'), 'arguments/0'), {
content: 'assert.ok(this.ary.indexOf(two) === minusOne, \'THIS IS AN ASSERTION MESSAGE\')',
filepath: 'test/fixtures/subdir/test_in_subdir.js',
line: 14
}), 'THIS IS AN ASSERTION MESSAGE');
});
});
it('should return index when the value is present', function () {
var minusOne = -1, two = 2;
assert.ok(assert._expr(assert._capt(assert._capt(assert._capt(ary, 'arguments/0/left/callee/object').indexOf(assert._capt(two, 'arguments/0/left/arguments/0')), 'arguments/0/left') === assert._capt(minusOne, 'arguments/0/right'), 'arguments/0'), {
content: 'assert.ok(ary.indexOf(two) === minusOne, \'THIS IS AN ASSERTION MESSAGE\')',
filepath: 'typescript_mocha_node.ts',
line: 22
}), 'THIS IS AN ASSERTION MESSAGE');
});
});
it('should return -1 when the value is not present', function () {
var zero = 0, two = 2;
assert(assert._expr(assert._capt(assert._capt(assert._capt(this.ary, 'arguments/0/left/callee/object').indexOf(assert._capt(zero, 'arguments/0/left/arguments/0')), 'arguments/0/left') === assert._capt(two, 'arguments/0/right'), 'arguments/0'), {
content: 'assert(this.ary.indexOf(zero) === two)',
filepath: 'test/fixtures/mocha_node.js',
line: 10
}));
});
it('should return index when the value is present', function () {
it('should return index when the value is present', function () {
var minusOne = -1, two = 2;
assert.ok(assert._expr(assert._capt(assert._capt(assert._capt(this.ary, 'arguments/0/left/callee/object').indexOf(assert._capt(two, 'arguments/0/left/arguments/0')), 'arguments/0/left') === assert._capt(minusOne, 'arguments/0/right'), 'arguments/0'), {
content: 'assert.ok(this.ary.indexOf(two) === minusOne, \'THIS IS AN ASSERTION MESSAGE\')',
filepath: 'test/fixtures/mocha_node.js',
line: 14
}), 'THIS IS AN ASSERTION MESSAGE');
});
});
it('should return -1 when the value is not present', function () {
var zero = 0, two = 2;
assert(assert._expr(assert._capt(assert._capt(assert._capt(ary, 'arguments/0/left/callee/object').indexOf(assert._capt(zero, 'arguments/0/left/arguments/0')), 'arguments/0/left') === assert._capt(two, 'arguments/0/right'), 'arguments/0'), {
content: 'assert(ary.indexOf(zero) === two)',
filepath: 'typescript_mocha_node.ts',
line: 18
}));
});
it('should return index when the value is present', function () {