Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
35b81dc6d9 | |||
47321b02b8 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartshell",
|
"name": "smartshell",
|
||||||
"version": "1.0.10",
|
"version": "1.0.11",
|
||||||
"description": "shell actions designed as promises",
|
"description": "shell actions designed as promises",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
@ -22,12 +22,12 @@ tap.test('smartshell should stream a shell execution', async () => {
|
|||||||
done.resolve(data)
|
done.resolve(data)
|
||||||
})
|
})
|
||||||
let data = await done.promise
|
let data = await done.promise
|
||||||
expect(data).to.equal('5.0.4\n')
|
expect(data).to.match(/[0-9\.]*/)
|
||||||
await execStreamingResponse.finalPromise
|
await execStreamingResponse.finalPromise
|
||||||
})
|
})
|
||||||
|
|
||||||
tap.test('it should execute and wait for a line in the output', async () => {
|
tap.test('it should execute and wait for a line in the output', async () => {
|
||||||
await smartshell.execAndWaitForLine('npm -v', /5.0.4/)
|
await smartshell.execAndWaitForLine('echo "5.0.4"', /5.0.4/)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Smartshell class
|
// Smartshell class
|
||||||
|
Reference in New Issue
Block a user