diff --git a/index.js b/index.js index e0b8190..06e2887 100644 --- a/index.js +++ b/index.js @@ -644,7 +644,7 @@ class BuyerPlugin { if (!Array.isArray(OptStayResults)) OptStayResults = [OptStayResults]; return { bookable: Boolean(SCheckPass), - // type: ACheckPass.type, + type: 'inventory', rates: OptStayResults.map(rate => { let externalRateText = R.pathOr('', ['ExternalRateDetails', 'ExtOptionDescr'], rate); const extRatePlanDescr = R.pathOr('', ['ExternalRateDetails', 'ExtRatePlanDescr'], rate); diff --git a/index.test.js b/index.test.js index 4a18a38..0e42978 100644 --- a/index.test.js +++ b/index.test.js @@ -233,7 +233,7 @@ describe('search tests', () => { expect(retVal).toMatchSnapshot(); expect(retVal.bookable).toBeTruthy(); expect(retVal.rates.length).toBeGreaterThan(0); - // expect(retVal.type).toBe('inventory'); + expect(retVal.type).toBe('inventory'); }); it.skip('searchAvailabilityForItinerary - bookable - on request', async () => { axios.mockImplementation(getFixture);