Skip to content

Commit 170234f

Browse files
committed
add fail test
1 parent 3a9f446 commit 170234f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test-fail.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var assert = require('assert');
2+
3+
describe('String', function () {
4+
describe('#indexOf', function () {
5+
it('should return -1 when the substring is not present', function () {
6+
var myString = 'test';
7+
8+
assert.equal(-1, myString.indexOf('x'));
9+
assert.equal(-1, myString.indexOf('e'));
10+
});
11+
});
12+
});

0 commit comments

Comments
 (0)