File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 77 "scripts" : {
88 "start" : " node app.js" ,
99 "watch" : " nodemon --exec npm run start" ,
10- "test" : " jest" ,
10+ "test" : " jest --forceExit " ,
1111 "build" : " babel src -d build && npm run pretty" ,
1212 "pretty" : " prettier --write --print-width 80 --single-quote --trailing-comma es5 --tab-width 4 'src/**/*.js' 'models/**/*.js' 'middleware/**/*.js' 'config/**/*.js'" ,
1313 "start-production" : " pm2 start ecosystem.json" ,
Original file line number Diff line number Diff line change 11const axios = require ( 'axios' )
22const app = require ( '../app' )
3- const url = `http://localhost:4000/api/v1/ `
3+ const url = `http://localhost:4000`
44const request = axios . create ( { baseURL : url } )
55
6- it ( 'return homepage' , async ( ) => {
6+ it ( 'returns homepage' , async ( ) => {
7+ expect . assertions ( 1 )
78 const response = await request . get ( '/' )
8- expect ( response . statusCode ) . toBe ( 200 )
9- done ( )
10- } ) ;
9+ expect ( response . status ) . toBe ( 200 )
10+ } ) ;
You can’t perform that action at this time.
0 commit comments