2 var promzard = require('../')
3 var test = require('tap').test
5 test('validate', function (t) {
7 var ctx = { tmpdir : '/tmp' }
8 var file = __dirname + '/validate.input'
9 promzard(file, ctx, function (er, found) {
11 var wanted = { name: 'cool' }
14 setTimeout(function () {
15 process.stdin.emit('data', 'not cool\n')
17 setTimeout(function () {
18 process.stdin.emit('data', 'cool\n')