UNPKG

@hubspot/api-client

Version:

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

21 lines 1.24 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../../../../codegen/crm/associations/v4/index"); const index_2 = require("../../../../../index"); const SchemaDiscovery_1 = __importDefault(require("../../../../../src/discovery/crm/associations/v4/schema/SchemaDiscovery")); describe('api client', () => { it('is discoverable', () => { const client = new index_2.Client().crm.associations.v4; expect(index_1.BasicApi.name).toBe(client.basicApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'basicApi')).toBeTruthy(); expect(index_1.BatchApi.name).toBe(client.batchApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'batchApi')).toBeTruthy(); expect(index_1.ReportApi.name).toBe(client.reportApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'reportApi')).toBeTruthy(); expect(SchemaDiscovery_1.default.name).toBe(client.schema.constructor.name); }); }); //# sourceMappingURL=associations.spec.js.map