This commit is contained in:
2017-07-16 16:19:48 +02:00
parent 4584c44248
commit 6aeb0c1558
5 changed files with 108 additions and 37 deletions

View File

@ -22,12 +22,12 @@ tap.test('smartshell should stream a shell execution', async () => {
done.resolve(data)
})
let data = await done.promise
expect(data).to.equal('5.0.3\n')
expect(data).to.equal('5.0.4\n')
await execStreamingResponse.finalPromise
})
tap.test('it should execute and wait for a line in the output', async () => {
await smartshell.execAndWaitForLine('npm -v', /5.0.3/)
await smartshell.execAndWaitForLine('npm -v', /5.0.4/)
})
// Smartshell class
@ -46,4 +46,6 @@ tap.test('smartshell should run async', async () => {
})
})
tap.start()
tap.start({
throwOnError: true
})