From 7037ffe1a2b1411ba8d2c2aac9b0e1a61c761767 Mon Sep 17 00:00:00 2001 From: Troy Whiteley Date: Fri, 5 Jan 2018 19:24:18 -0800 Subject: [PATCH] add travis/coveralls --- .travis.yml | 6 ++++++ package.json | 1 + test/healthcheck.test.js | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..66fd28f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "9" + - "8" + +after_script: "npm run coveralls" diff --git a/package.json b/package.json index 0722bd2..cdc4ec2 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ }, "devDependencies": { "code": "^5.1.2", + "coveralls": "^3.0.0", "eslint": "^4.11.0", "eslint-config-firstandthird": "^4.0.1", "eslint-plugin-import": "^2.6.1", diff --git a/test/healthcheck.test.js b/test/healthcheck.test.js index 0e82774..e9180d6 100644 --- a/test/healthcheck.test.js +++ b/test/healthcheck.test.js @@ -95,8 +95,6 @@ lab.test('custom checks', async() => { const result = await wreck.get('http://localhost:8000/health', { json: 'force' }); - console.log(result.payload); - code.expect(result.payload).to.be.an.object(); code.expect(result.payload.host).to.equal(server.info.host); code.expect(result.payload.env).to.equal(process.env.NODE_ENV);