UNPKG

@hubspot/api-client

Version:

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

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