File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ node_modules/
22npm-debug.log *
33yarn-debug.log *
44yarn-error.log *
5- coverage /
5+ coverage
66.nyc_output /
77.env
88.env.local
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ import request from 'supertest';
55const baseURL = process . env . TEST_BASE_URL || 'http://localhost:3000' ;
66
77describe ( 'API Tests' , ( ) => {
8- it ( 'should return Hello Den Bosch from GET /' , async ( ) => {
8+ it ( 'should return Hello World from GET /' , async ( ) => {
99 const res = await request ( baseURL ) . get ( '/' ) ;
1010 expect ( res . statusCode ) . toBe ( 200 ) ;
11- expect ( res . text ) . toBe ( 'Hello Den Bosch !' ) ;
11+ expect ( res . text ) . toBe ( 'Hello World !' ) ;
1212 } ) ;
1313
1414 it ( 'should respond within reasonable time' , async ( ) => {
@@ -26,7 +26,7 @@ describe('API Tests', () => {
2626
2727 responses . forEach ( res => {
2828 expect ( res . statusCode ) . toBe ( 200 ) ;
29- expect ( res . text ) . toBe ( 'Hello Den Bosch !' ) ;
29+ expect ( res . text ) . toBe ( 'Hello World !' ) ;
3030 } ) ;
3131 } ) ;
3232} ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const app = express();
44const PORT = process . env . PORT || 3000 ;
55
66app . get ( '/' , ( req , res ) => {
7- res . send ( 'Hello Den Bosch !' ) ;
7+ res . send ( 'Hello World !' ) ;
88} ) ;
99
1010app . listen ( PORT , ( ) => {
You can’t perform that action at this time.
0 commit comments