mirror of
https://github.com/clinicjs/node-clinic.git
synced 2025-12-08 21:26:08 +00:00
21 lines
523 B
JavaScript
21 lines
523 B
JavaScript
'use strict'
|
|
|
|
const test = require('tap').test
|
|
const cli = require('./cli.js')
|
|
|
|
test('clinic bubbleprof --help', function (t) {
|
|
cli({}, ['clinic', 'bubbleprof', '--help'], function (err, stdout) {
|
|
t.ifError(err)
|
|
t.ok(/Clinic.js BubbleProf[^\w ]/.test(stdout.split('\n')[1]))
|
|
t.end()
|
|
})
|
|
})
|
|
|
|
test('clinic bubbleprof -h', function (t) {
|
|
cli({}, ['clinic', 'bubbleprof', '-h'], function (err, stdout) {
|
|
t.ifError(err)
|
|
t.ok(/Clinic.js BubbleProf[^\w ]/.test(stdout.split('\n')[1]))
|
|
t.end()
|
|
})
|
|
})
|