File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -115,3 +115,21 @@ test('It should return the next launch', async () => {
115115 const response = await request ( app . callback ( ) ) . get ( '/v2/launches/next' ) ;
116116 expect ( response . statusCode ) . toBe ( 200 ) ;
117117} ) ;
118+
119+ //------------------------------------------------------------
120+ // Past Launches
121+ //------------------------------------------------------------
122+
123+ test ( 'It should return the next launch' , async ( ) => {
124+ const response = await request ( app . callback ( ) ) . get ( '/v2/launches' ) ;
125+ expect ( response . statusCode ) . toBe ( 200 ) ;
126+ } ) ;
127+
128+ //------------------------------------------------------------
129+ // Upcoming Launches
130+ //------------------------------------------------------------
131+
132+ test ( 'It should return the next launch' , async ( ) => {
133+ const response = await request ( app . callback ( ) ) . get ( '/v2/launches/upcoming' ) ;
134+ expect ( response . statusCode ) . toBe ( 200 ) ;
135+ } ) ;
You can’t perform that action at this time.
0 commit comments