8000 Add coverage report. · csvwolf/leetcode-cli@23b0016 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23b0016

Browse files
committed
Add coverage report.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent 6a95541 commit 23b0016

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ language: node_js
22
node_js:
33
- stable
44
install:
5-
- npm install -g eslint-cli mocha
65
- npm install

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"lc": "./bin/lc"
88
},
99
"scripts": {
10-
"test": "npm run lint && mocha test/",
11-
"lint": "eslint lib/"
10+
"lint": "eslint lib/",
11+
"test": "npm run lint && nyc mocha test/"
1212
},
1313
"repository": {
1414
"type": "git",
@@ -42,6 +42,7 @@
4242
"chai": "^3.5.0",
4343
"eslint": "^3.3.1",
4444
"eslint-config-google": "^0.6.0",
45-
"mocha": "^3.0.2"
45+
"mocha": "^3.0.2",
46+
"nyc": "^8.1.0"
4647
}
4748
}

0 commit comments

Comments
 (0)
0