Skip to content

Commit ad1e9c3

Browse files
committed
Upgrade mocha and chai
1 parent 284acae commit ad1e9c3

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
coverage.html
1+
coverage
2+
.nyc_output
3+
*.log

package.json

+11-12
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
"description": "JavaScript time series spike detection for Node.js; like the Octave findpeaks function.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "npm run unit-tests",
7+
"test": "nyc mocha --reporter dot 'test/**/*.js'",
8+
"posttest": "npm run benchmarks",
89
"eslint": "eslint ./lib/",
9-
"unit-tests": "mocha --reporter dot 'test/**/*.js'",
10-
"test-watch": "mocha --reporter dot --watch 'test/**/*.js'",
11-
"bench": "./bin/run-benchmarks.js"
10+
"benchmarks": "./bin/run-benchmarks.js"
1211
},
1312
"repository": {
1413
"type": "git",
1514
"url": "https://github.com/bbc/slayer.git"
1615
},
17-
"config": {
18-
"blanket": {
19-
"pattern": "/lib/",
20-
"data-cover-never": "//(node_modules|test|entropy|average)/gm"
21-
}
16+
"nyc": {
17+
"check-coverage": true,
18+
"reporter": [
19+
"text",
20+
"html"
21+
]
2222
},
2323
"keywords": [
2424
"maths",
@@ -35,10 +35,9 @@
3535
"license": "Apache-2",
3636
"devDependencies": {
3737
"benchmark": "^1.0.0",
38-
"blanket": "1.1.9",
39-
"chai": "^1.9.1",
38+
"chai": "^3.5.0",
4039
"eslint": "^0.5.0",
41-
"mocha": "^1.20.1",
40+
"mocha": "^3.1.0",
4241
"sinon": "^1.9.1",
4342
"sinon-chai": "^2.5.0"
4443
},

0 commit comments

Comments
 (0)