mirror of
https://github.com/clinicjs/node-clinic.git
synced 2025-12-08 21:26:08 +00:00
* 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
21 lines
489 B
JavaScript
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()
|
|
})
|
|
})
|