node-clinic/test/cli-bubbleprof-no-args.test.js
2019-03-21 16:27:40 +01:00

13 lines
342 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.js BubbleProf[^\w ]/.test(stdout.split('\n')[1]))
t.end()
})
})