UNPKG

@hubspot/api-client

Version:

NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files

28 lines 2.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../../../codegen/marketing/events/index"); const index_2 = require("../../../../index"); describe('api client', () => { it('is discoverable', () => { const client = new index_2.Client().marketing.events; expect(Object.prototype.hasOwnProperty.call(client, 'addEventAttendeesApi')).toBeTruthy(); expect(index_1.AddEventAttendeesApi.name).toBe(client.addEventAttendeesApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'basicApi')).toBeTruthy(); expect(index_1.BasicApi.name).toBe(client.basicApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'batchApi')).toBeTruthy(); expect(index_1.BatchApi.name).toBe(client.batchApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'changePropertyApi')).toBeTruthy(); expect(index_1.ChangePropertyApi.name).toBe(client.changePropertyApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'identifiersApi')).toBeTruthy(); expect(index_1.IdentifiersApi.name).toBe(client.identifiersApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'listAssociationsApi')).toBeTruthy(); expect(index_1.ListAssociationsApi.name).toBe(client.listAssociationsApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'retrieveParticipantStateApi')).toBeTruthy(); expect(index_1.RetrieveParticipantStateApi.name).toBe(client.retrieveParticipantStateApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'settingsApi')).toBeTruthy(); expect(index_1.SettingsApi.name).toBe(client.settingsApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'subscriberStateChangesApi')).toBeTruthy(); expect(index_1.SubscriberStateChangesApi.name).toBe(client.subscriberStateChangesApi.constructor.name); }); }); //# sourceMappingURL=events.spec.js.map