@@ -9,32 +9,6 @@ beforeAll((done) => {
99 } ) ;
1010} ) ;
1111
12- //------------------------------------------------------------
13- // Company Info V2
14- //------------------------------------------------------------
15-
16- test ( 'It should return company info' , ( ) => {
17- return request ( app ) . get ( '/v2/info' ) . then ( ( response ) => {
18- expect ( response . statusCode ) . toBe ( 200 ) ;
19- expect ( response . body ) . toHaveProperty ( 'name' , 'SpaceX' ) ;
20- expect ( response . body ) . toHaveProperty ( 'founder' , 'Elon Musk' ) ;
21- expect ( response . body ) . toHaveProperty ( 'founded' , 2002 ) ;
22- expect ( response . body ) . toHaveProperty ( 'employees' ) ;
23- expect ( response . body ) . toHaveProperty ( 'vehicles' ) ;
24- expect ( response . body ) . toHaveProperty ( 'launch_sites' ) ;
25- expect ( response . body ) . toHaveProperty ( 'test_sites' ) ;
26- expect ( response . body ) . toHaveProperty ( 'ceo' ) ;
27- expect ( response . body ) . toHaveProperty ( 'cto' ) ;
28- expect ( response . body ) . toHaveProperty ( 'coo' ) ;
29- expect ( response . body ) . toHaveProperty ( 'cto_propulsion' ) ;
30- expect ( response . body ) . toHaveProperty ( 'valuation' ) ;
31- expect ( response . body ) . toHaveProperty ( 'headquarters.address' , 'Rocket Road' ) ;
32- expect ( response . body ) . toHaveProperty ( 'headquarters.city' , 'Hawthorne' ) ;
33- expect ( response . body ) . toHaveProperty ( 'headquarters.state' , 'California' ) ;
34- expect ( response . body ) . toHaveProperty ( 'summary' ) ;
35- } ) ;
36- } ) ;
37-
3812//------------------------------------------------------------
3913// Rockets V2
4014//------------------------------------------------------------
0 commit comments