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

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