node-clinic/test/cli-bubbleprof-version.test.js
Rafael Gonzaga 93ea3711d1
bump v10 (#299)
* update: use clinic scoped packages

* 10.0.0
2021-11-15 08:16:53 -03:00

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