mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
10 lines
263 B
TypeScript
10 lines
263 B
TypeScript
// A sample Mocha test
|
|
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));
|
|
});
|
|
});
|
|
});
|