mirror of
https://github.com/clinicjs/node-clinic.git
synced 2026-01-18 16:22:03 +00:00
* 0x-integration * 0x v3.0.0 * docs * fixes * more fixes * more docs * --full-help -> --all-options * add tests * ignore 0x on ci * ignore 0x in code coverage * ignore code coverage * separate test-local into its own script (needs sudo), and fix test-local requires
21 lines
487 B
JavaScript
21 lines
487 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 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 Flame[^\w ]/.test(stdout.split('\n')[1]))
|
|
t.end()
|
|
})
|
|
})
|