Compare commits

..

4 Commits

Author SHA1 Message Date
01e6411c29 1.0.12 2017-07-18 15:24:10 +02:00
b356bcbaed update ci 2017-07-18 15:24:05 +02:00
35b81dc6d9 1.0.11 2017-07-18 15:22:24 +02:00
47321b02b8 fix tests 2017-07-18 15:22:19 +02:00
3 changed files with 9 additions and 5 deletions

View File

@ -56,13 +56,17 @@ trigger:
- docker
pages:
image: hosttoday/ht-docker-node:npmpage
image: hosttoday/ht-docker-node:npmci
stage: pages
script:
- npmci command npmpage --publish gitlab
- npmci command yarn global add npmpage
- npmci command npmpage
tags:
- docker
only:
- tags
artifacts:
expire_in: 1 week
paths:
- public
allow_failure: true

View File

@ -1,6 +1,6 @@
{
"name": "smartshell",
"version": "1.0.10",
"version": "1.0.12",
"description": "shell actions designed as promises",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

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.4\n')
expect(data).to.match(/[0-9\.]*/)
await execStreamingResponse.finalPromise
})
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