node-clinic/test/cli-flame-help.test.js
David Mark Clements 2d50599ad7
0x-integration
* 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
2018-01-22 12:53:31 +01:00

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()
})
})