File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
var server = require ( '../server' ) ,
2
2
chai = require ( 'chai' ) ,
3
- chaiHttp = require ( 'chai-http' ) ,
3
+ chaiHTTP = require ( 'chai-http' ) ,
4
4
should = chai . should ( ) ;
5
5
6
- chai . use ( chaiHttp ) ;
6
+ chai . use ( chaiHTTP ) ;
7
+
8
+ reqServer = process . env . HTTP_TEST_SERVER || server
7
9
8
10
describe ( 'Basic routes tests' , function ( ) {
9
11
10
12
it ( 'GET to / should return 200' , function ( done ) {
11
- chai . request ( server )
13
+ chai . request ( reqServer )
12
14
. get ( '/' )
13
15
. end ( function ( err , res ) {
14
16
res . should . have . status ( 200 ) ;
@@ -18,7 +20,7 @@ describe('Basic routes tests', function() {
18
20
} )
19
21
20
22
it ( 'GET to /pagecount should return 200' , function ( done ) {
21
- chai . request ( server )
23
+ chai . request ( reqServer )
22
24
. get ( '/pagecount' )
23
25
. end ( function ( err , res ) {
24
26
res . should . have . status ( 200 ) ;
You can’t perform that action at this time.
0 commit comments