Skip to content

Commit 3abbd0b

Browse files
added mocha and dummy test
1 parent 463bd5f commit 3abbd0b

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
"require": "^2.4.20",
1717
"yargs": "^11.0.0"
1818
},
19-
"devDependencies": {},
19+
"devDependencies": {
20+
"mocha": "^5.2.0"
21+
},
2022
"scripts": {
21-
"test": "echo \"Error: no test specified\" && exit 1"
23+
"test": "mocha"
2224
},
2325
"repository": {
2426
"type": "git",

test/e-chords.scraper.js

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

0 commit comments

Comments
 (0)