mirror of
https://github.com/clinicjs/node-clinic.git
synced 2026-02-01 17:27:14 +00:00
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
'use strict'
|
|
|
|
const test = require('tap').test
|
|
const cli = require('./cli.js')
|
|
|
|
test('clinic', function (t) {
|
|
cli({}, ['clinic'], function (err, stdout) {
|
|
t.strictDeepEqual(err, new Error('process exited with exit code 1'))
|
|
t.ok(/Clinic[^\w ]/.test(stdout.split('\n')[1]))
|
|
t.end()
|
|
})
|
|
})
|