blob: 7d7313f83633f4434465ac9d6ae25665d8eb22e3 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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()
})
|