node-clinic/test/cli-bubbleprof-no-args.test.js
2018-07-23 20:18:55 +02:00

13 lines
339 B
JavaScript

'use strict'
const test = require('tap').test
const cli = require('./cli.js')
test('clinic bubbleprof', function (t) {
cli({}, ['clinic', 'bubbleprof'], function (err, stdout) {
t.strictDeepEqual(err, new Error('process exited with exit code 1'))
t.ok(/Clinic BubbleProf[^\w ]/.test(stdout.split('\n')[1]))
t.end()
})
})