mirror of
https://github.com/appium/appium.git
synced 2026-02-19 00:18:56 -06:00
14 lines
431 B
JavaScript
14 lines
431 B
JavaScript
// Run with mocha by installing dev deps: npm install --dev
|
|
// more docs on writing tests with mocha can be found here:
|
|
// http://visionmedia.github.com/mocha/
|
|
|
|
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));
|
|
})
|
|
})
|
|
})
|