node-clinic/test/cli-flame-help.test.js
Rafael Gonzaga 87e8a215dc
chore: add ci support node 16 (#292)
* chore: bump tap version

* chore: add v16 to test matrix

* chore: update coverage settings to latest tap version

* chore: use taprc

* chore: support v17

* chore: updade coverage settings
2021-10-28 09:41:21 -03:00

21 lines
489 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.error(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.error(err)
t.ok(/Clinic.js Flame[^\w ]/.test(stdout.split('\n')[1]))
t.end()
})
})