File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -454,13 +454,23 @@ describe('Namespaces', () => {
454454 . toHaveBeenCalledWith ( '/v1/booking/flight-orders/XXX' ) ;
455455 } ) ;
456456
457+ it ( '.amadeus.booking.flightOrder().get throws when not providing an orderId' , ( ) => {
458+ expect ( ( ) => amadeus . booking . flightOrder ( ) . get ( ) )
459+ . toThrow ( new Error ( 'MISSING_REQUIRED_PARAMETER' ) ) ;
460+ } ) ;
461+
457462 it ( '.amadeus.booking.flightOrder().delete' , ( ) => {
458463 amadeus . client . delete = jest . fn ( ) ;
459464 amadeus . booking . flightOrder ( 'XXX' ) . delete ( ) ;
460465 expect ( amadeus . client . delete )
461466 . toHaveBeenCalledWith ( '/v1/booking/flight-orders/XXX' ) ;
462467 } ) ;
463468
469+ it ( '.amadeus.booking.flightOrder().delete throws when not providing an orderId' , ( ) => {
470+ expect ( ( ) => amadeus . booking . flightOrder ( ) . delete ( ) )
471+ . toThrow ( new Error ( 'MISSING_REQUIRED_PARAMETER' ) ) ;
472+ } ) ;
473+
464474 it ( '.amadeus.booking.hotelBookings.post' , ( ) => {
465475 amadeus . client . post = jest . fn ( ) ;
466476 amadeus . booking . hotelBookings . post ( ) ;
You can’t perform that action at this time.
0 commit comments