diff --git a/.travis.yml b/.travis.yml index 640d0a8..df7672b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,9 @@ language: node_js node_js: - '8' -- '9' - '10' +- '11' +- '12' before_install: yarn global add greenkeeper-lockfile@1 before_script: greenkeeper-lockfile-update script: yarn test diff --git a/package.json b/package.json index d403054..fd17be6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lifeomic/bitrise", - "version": "0.4.0", + "version": "0.5.0-alpha", "description": "Bitrise API client", "main": "src/client.js", "repository": { diff --git a/test/build.test.js b/test/build.test.js index d4816a0..0a19ff6 100644 --- a/test/build.test.js +++ b/test/build.test.js @@ -94,7 +94,7 @@ test.serial('following a failed build that has not finished prints the log outpu const write = sinon.stub(process.stdout, 'write'); try { - await test.throws(build.follow()); + await test.throwsAsync(() => build.follow()); for (const chunk of logChunks) { sinon.assert.calledWithExactly(write, chunk); @@ -134,7 +134,7 @@ test('following a failed build that has already finished prints the log output a const write = sinon.stub(process.stdout, 'write'); try { - await test.throws(build.follow()); + await test.throwsAsync(() => build.follow()); sinon.assert.calledWithExactly(write, logText); } finally { write.restore(); diff --git a/test/client.test.js b/test/client.test.js index 0cbc516..e6fdedd 100644 --- a/test/client.test.js +++ b/test/client.test.js @@ -100,7 +100,7 @@ test.serial('a client gives up after too many retries', async (test) => { sinon.assert.calledOnce(create); const httpClient = create.firstCall.returnValue; - const { response } = await test.throws(httpClient.get('http://localhost/error')); + const { response } = await test.throwsAsync(() => httpClient.get('http://localhost/error')); test.is(response.status, 500); } finally { create.restore();