Skip to content

Commit 4e2ba11

Browse files
Patrick HankinsonPatrick Hankinson
authored andcommitted
Failing test using Mocha
1 parent 5c2c641 commit 4e2ba11

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
"method-override": "^2.1.3",
1111
"mongoose": "^4.4.12",
1212
"morgan": "^1.1.1"
13+
},
14+
"scripts": {
15+
"test": "mocha"
1316
}
1417
}

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, [1,2,3].indexOf(2));
6+
});
7+
});
8+
});

0 commit comments

Comments
 (0)