We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a9f446 commit 170234fCopy full SHA for 170234f
tests/test-fail.js
@@ -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