Skip to content

Commit d2c6ece

Browse files
committed
Fix test coverage
1 parent 03596db commit d2c6ece

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"scripts": {
1111
"test": "gulp test",
12-
"ci-test": "nyc npm test && coveralls <coverage/lcov.info",
12+
"ci-test": "nyc --check-coverage --statements 100 --lines 100 --functions 100 --branches 100 npm test && coveralls <coverage/lcov.info",
1313
"prepublishOnly": "npm test",
1414
"release": "release-it"
1515
},

src/level.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ const getLevel = function({ opts, info }) {
2020
return defaultGetLevel(info)
2121
}
2222

23+
// istanbul ignore next
2324
const supportsUnicode = platform !== 'win32' || TERM === 'xterm-256color'
2425
// Each level is printed in a different way
26+
// istanbul ignore next
2527
const LEVELS = {
2628
debug: {
2729
COLOR: 'blue',

0 commit comments

Comments
 (0)