File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ var HTTPStatus = require("http-status");
5
5
var model = require ( '../../models' ) ;
6
6
if ( process . env . TRAVIS == 'true' ) {
7
7
model . sequelize . sync ( ) . then ( function ( ) {
8
- console . log ( 'Testing...' ) ;
8
+ test ( ) ;
9
9
} ) ;
10
- test ( ) ;
11
10
}
12
11
else {
13
12
test ( ) ;
@@ -45,6 +44,7 @@ function test() {
45
44
done ( ) ;
46
45
} ) ;
47
46
} ) ;
47
+ done ( ) ;
48
48
} ) ;
49
49
describe ( 'GET /api/users/all' , function ( ) {
50
50
it ( 'Should return a array of Users' , function ( done ) {
Original file line number Diff line number Diff line change @@ -6,9 +6,8 @@ var model = require('../../models');
6
6
7
7
if ( process . env . TRAVIS == 'true' ) {
8
8
model . sequelize . sync ( ) . then ( ( ) => {
9
- console . log ( 'Testing...' )
9
+ test ( ) ;
10
10
} ) ;
11
- test ( ) ;
12
11
} else {
13
12
test ( ) ;
14
13
}
@@ -17,7 +16,6 @@ function test() {
17
16
describe ( '## User Tests' , ( ) => {
18
17
'use strict' ;
19
18
const config = require ( '../../config/env/config' ) ( ) ;
20
- // const model = require('../../models');
21
19
22
20
let id ;
23
21
let token ;
@@ -50,6 +48,7 @@ function test() {
50
48
done ( ) ;
51
49
} ) ;
52
50
} ) ;
51
+ done ( ) ;
53
52
} ) ;
54
53
55
54
describe ( 'GET /api/users/all' , ( ) => {
You can’t perform that action at this time.
0 commit comments