Fail tests if code is not fully covered

This commit is contained in:
Vincenzo Greco 2017-03-18 12:04:01 +01:00
parent 52ae174ae2
commit 75c9e386a2
2 changed files with 1 additions and 2 deletions

View file

@ -38,4 +38,3 @@ function renderCanvas (renderFunc, canvas, text, opts, cb) {
exports.create = QRCode.create
exports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)
exports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)

View file

@ -12,6 +12,6 @@ var opt = {
spawn('node', [
'node_modules/.bin/tap',
'--cov',
'--cov', '--100',
process.argv[2] || 'test/**/*.test.js'
], opt)