mirror of
https://github.com/clinicjs/node-clinic.git
synced 2025-12-08 21:26:08 +00:00
27 lines
587 B
JavaScript
27 lines
587 B
JavaScript
'use strict'
|
|
|
|
const test = require('tap').test
|
|
const cli = require('./cli.js')
|
|
|
|
test('clinic bubbleprof --version', function (t) {
|
|
cli({}, ['clinic', 'bubbleprof', '--version'], function (err, stdout) {
|
|
t.error(err)
|
|
t.equal(
|
|
stdout,
|
|
`v${require('@clinic/bubbleprof/package.json').version}\n`
|
|
)
|
|
t.end()
|
|
})
|
|
})
|
|
|
|
test('clinic bubbleprof -v', function (t) {
|
|
cli({}, ['clinic', 'bubbleprof', '-v'], function (err, stdout) {
|
|
t.error(err)
|
|
t.equal(
|
|
stdout,
|
|
`v${require('@clinic/bubbleprof/package.json').version}\n`
|
|
)
|
|
t.end()
|
|
})
|
|
})
|