node-clinic/test/cli-bubbleprof-no-args.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

13 lines
337 B
JavaScript

'use strict'
const test = require('tap').test
const cli = require('./cli.js')
test('clinic bubbleprof', function (t) {
cli({}, ['clinic', 'bubbleprof'], function (err, stdout) {
t.strictSame(err, new Error('process exited with exit code 1'))
t.ok(/Clinic.js BubbleProf[^\w ]/.test(stdout.split('\n')[1]))
t.end()
})
})