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

21 lines
493 B
JavaScript

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