Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:findmypast-oss/jackal
Browse files Browse the repository at this point in the history
  • Loading branch information
sashman committed Apr 7, 2017
2 parents 6b6074a + ca454aa commit 7b1eaab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
"**/*.json",
"index.js",
"coverage/**/*",
"server/middleware/*.js"
"server/middleware/*.js",
"test/**/*"
],
"reporter": [
"lcov",
Expand Down
9 changes: 9 additions & 0 deletions test/integration/integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const fs = require('fs')
const provider = require('./helpers/provider')
const jackal = require('./helpers/jackal')
const client = require('./helpers/client')
const request = require('request')

describe('Integration Tests', function () {
describe('Happy Path', function () {
Expand All @@ -17,6 +18,14 @@ describe('Integration Tests', function () {
after(jackal.stop)
after(provider.stop)

it('should be living long and prospering', function (done) {
request('http://localhost:25853/health', (err, res, body) => {
expect(res.statusCode).to.be.equal(200)
expect(body).to.be.equal('😊')
done()
})
})

it('should start the provider successfully using version: "1"', function (done) {
provider.start({ port: 5000, contract: { version: '1' } }, done)
})
Expand Down

0 comments on commit 7b1eaab

Please sign in to comment.