File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const port = process.env.PORT || 3000;
44
55// Define a route
66app . get ( '/' , ( req , res ) => {
7- res . send ( 'Hello ITJers and super Happy Friday!' ) ;
7+ res . send ( 'Hello ITJers and Happy Friday!' ) ;
88} ) ;
99
1010// Start the server
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ const request = require('supertest');
22const app = require ( '../index' ) ;
33
44describe ( 'GET /' , ( ) => {
5- test ( 'It should respond with: Hello ITJers and super Happy Friday!' , async ( ) => {
5+ test ( 'It should respond with: Hello ITJers and Happy Friday!' , async ( ) => {
66 const response = await request ( app ) . get ( '/' ) ;
77 expect ( response . status ) . toBe ( 200 ) ;
8- expect ( response . text ) . toBe ( 'Hello ITJers and super Happy Friday!' ) ;
8+ expect ( response . text ) . toBe ( 'Hello ITJers and Happy Friday!' ) ;
99 } ) ;
1010} ) ;
You can’t perform that action at this time.
0 commit comments