UNPKG

@hubspot/api-client

Version:

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

16 lines 880 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../../../../codegen/crm/objects/emails/index"); const index_2 = require("../../../../../index"); describe('api client', () => { it('is discoverable', () => { const client = new index_2.Client().crm.objects.emails; 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, 'searchApi')).toBeTruthy(); expect(index_1.SearchApi.name).toBe(client.searchApi.constructor.name); }); }); //# sourceMappingURL=emails.spec.js.map