Skip to content

Commit 5cf04cb

Browse files
DengDeng
authored andcommitted
add mocha test
1 parent c8f2bfd commit 5cf04cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var assert = require('assert');
2+
describe('Array', function() {
3+
describe('#indexOf()', function() {
4+
it('should return -1 when the value is not present', function() {
5+
assert.equal([1, 2, 3].indexOf(4), -1);
6+
});
7+
});
8+
});

0 commit comments

Comments
 (0)