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

21 lines
523 B
JavaScript

'use strict'
const test = require('tap').test
const cli = require('./cli.js')
test('clinic bubbleprof --help', function (t) {
cli({}, ['clinic', 'bubbleprof', '--help'], function (err, stdout) {
t.ifError(err)
t.ok(/Clinic.js BubbleProf[^\w ]/.test(stdout.split('\n')[1]))
t.end()
})
})
test('clinic bubbleprof -h', function (t) {
cli({}, ['clinic', 'bubbleprof', '-h'], function (err, stdout) {
t.ifError(err)
t.ok(/Clinic.js BubbleProf[^\w ]/.test(stdout.split('\n')[1]))
t.end()
})
})