thedesk/app/node_modules/nugget/test/cli.js
2019-09-12 23:38:13 +09:00

12 lines
339 B
JavaScript

var fs = require('fs')
var path = require('path')
var spawn = require('tape-spawn')
var test = require('tape')
test('usage', function (t) {
var child = spawn(t, path.join(__dirname, '..', 'bin.js'))
child.stdout.match(fs.readFileSync(path.join(__dirname, '..', 'usage.txt')).toString() + '\n')
child.stderr.empty()
child.end()
})