Skip to content

Commit

Permalink
add an alternate http address for the tests to execute on (sclorg#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
PI-Victor authored and bparees committed Aug 1, 2016
1 parent e61190a commit 0e748ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/app_test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
var server = require('../server'),
chai = require('chai'),
chaiHttp = require('chai-http'),
chaiHTTP = require('chai-http'),
should = chai.should();

chai.use(chaiHttp);
chai.use(chaiHTTP);

reqServer = process.env.HTTP_TEST_SERVER || server

describe('Basic routes tests', function() {

it('GET to / should return 200', function(done){
chai.request(server)
chai.request(reqServer)
.get('/')
.end(function(err, res) {
res.should.have.status(200);
Expand All @@ -18,7 +20,7 @@ describe('Basic routes tests', function() {
})

it('GET to /pagecount should return 200', function(done){
chai.request(server)
chai.request(reqServer)
.get('/pagecount')
.end(function(err, res) {
res.should.have.status(200);
Expand Down

0 comments on commit 0e748ed

Please sign in to comment.