Skip to content

Commit

Permalink
Update test to send bookingRefId
Browse files Browse the repository at this point in the history
  • Loading branch information
shintre committed Aug 5, 2024
1 parent f1b55f3 commit 3d08ca0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('search tests', () => {
const token = {
endpoint: process.env.ti2_bonza_endpoint,
apiKey: process.env.ti2_bonza_apiKey,
bookingPartnerId: 181
bookingPartnerId: 181,
};
const dateFormat = 'DD/MM/YYYY';
const dateFormatCB = 'YYYY-MM-DD';
Expand Down Expand Up @@ -179,7 +179,7 @@ describe('search tests', () => {
expect(availabilityKey).toBeTruthy();
});
let booking;
const reference = faker.datatype.uuid();
// const reference = faker.datatype.uuid();
it('should be able to create a booking', async () => {
const fullName = faker.name.findName().split(' ');
const retVal = await app.createBooking({
Expand Down Expand Up @@ -214,7 +214,7 @@ describe('search tests', () => {
phone: "888888877",
country: faker.address.countryCode(),
},
reference,
reference: bookingRefId,
},
});
expect(retVal.booking).toBeTruthy();
Expand Down

0 comments on commit 3d08ca0

Please sign in to comment.