@@ -9,38 +9,6 @@ beforeAll((done) => {
99 } ) ;
1010} ) ;
1111
12- //------------------------------------------------------------
13- // Launchpads V2
14- //------------------------------------------------------------
15-
16- test ( 'It should return all launchpads' , ( ) => {
17- return request ( app ) . get ( '/v2/launchpads' ) . then ( ( response ) => {
18- expect ( response . statusCode ) . toBe ( 200 ) ;
19- expect ( response . body ) . toHaveLength ( 8 ) ;
20- response . body . forEach ( ( item ) => {
21- expect ( item ) . toHaveProperty ( 'id' ) ;
22- expect ( item ) . toHaveProperty ( 'full_name' ) ;
23- expect ( item ) . toHaveProperty ( 'status' ) ;
24- expect ( item ) . toHaveProperty ( 'vehicles_launched' ) ;
25- expect ( item ) . toHaveProperty ( 'details' ) ;
26- } ) ;
27- } ) ;
28- } ) ;
29-
30- test ( 'It should return LC-39A info' , ( ) => {
31- return request ( app ) . get ( '/v2/launchpads/ksc_lc_39a' ) . then ( ( response ) => {
32- expect ( response . statusCode ) . toBe ( 200 ) ;
33- expect ( response . text ) . toContain ( 'ksc_lc_39a' ) ;
34- } ) ;
35- } ) ;
36-
37- test ( 'It should return no launchpad info' , ( ) => {
38- return request ( app ) . get ( '/v2/launchpads/ksc_lc_40a' ) . then ( ( response ) => {
39- expect ( response . statusCode ) . toBe ( 200 ) ;
40- expect ( response . text ) . toContain ( '' ) ;
41- } ) ;
42- } ) ;
43-
4412//------------------------------------------------------------
4513// Past Launches V2
4614//------------------------------------------------------------
0 commit comments