File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ chai.use(chaiHttp);
6
6
const expect = chai . expect ;
7
7
describe ( 'baseRoute' , ( ) => {
8
8
it ( 'should be json' , ( ) => {
9
- chai . request ( App_1 . default ) . get ( '/' )
9
+ return chai . request ( App_1 . default ) . get ( '/' )
10
10
. then ( res => {
11
11
expect ( res . type ) . to . eql ( 'application/json' ) ;
12
12
} ) ;
13
13
} ) ;
14
14
it ( 'should have a message prop' , ( ) => {
15
- chai . request ( App_1 . default ) . get ( '/' )
15
+ return chai . request ( App_1 . default ) . get ( '/' )
16
16
. then ( res => {
17
17
expect ( res . body . message ) . to . eql ( 'Hello World!' ) ;
18
18
} ) ;
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ const expect = chai.expect;
10
10
describe ( 'baseRoute' , ( ) => {
11
11
12
12
it ( 'should be json' , ( ) => {
13
- chai . request ( app ) . get ( '/' )
13
+ return chai . request ( app ) . get ( '/' )
14
14
. then ( res => {
15
15
expect ( res . type ) . to . eql ( 'application/json' ) ;
16
16
} ) ;
17
17
} ) ;
18
18
19
19
it ( 'should have a message prop' , ( ) => {
20
- chai . request ( app ) . get ( '/' )
20
+ return chai . request ( app ) . get ( '/' )
21
21
. then ( res => {
22
22
expect ( res . body . message ) . to . eql ( 'Hello World!' ) ;
23
23
} ) ;
You can’t perform that action at this time.
0 commit comments