Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darseen committed Sep 21, 2024
1 parent 3466345 commit 18b604a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/amadeus/namespaces.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ describe('Namespaces', () => {
amadeus.client.post = jest.fn();
amadeus.shopping.flightOffers.prediction.post();
expect(amadeus.client.post)
.toHaveBeenCalledWith('/v2/shopping/flight-offers/prediction', {});
.toHaveBeenCalledWith('/v2/shopping/flight-offers/prediction', JSON.stringify({}));
});

it('.amadeus.booking.flightOrders.post', () => {
Expand Down Expand Up @@ -445,14 +445,14 @@ describe('Namespaces', () => {
amadeus.client.post = jest.fn();
amadeus.booking.hotelBookings.post();
expect(amadeus.client.post)
.toHaveBeenCalledWith('/v1/booking/hotel-bookings', {});
.toHaveBeenCalledWith('/v1/booking/hotel-bookings', JSON.stringify({}));
});

it('.amadeus.booking.hotelOrders.post', () => {
amadeus.client.post = jest.fn();
amadeus.booking.hotelOrders.post();
expect(amadeus.client.post)
.toHaveBeenCalledWith('/v2/booking/hotel-orders', {});
.toHaveBeenCalledWith('/v2/booking/hotel-orders', JSON.stringify({}));
});

it('.amadeus.eReputation.hotelSentiments.get', () => {
Expand Down

0 comments on commit 18b604a

Please sign in to comment.