UNPKG

@hubspot/api-client

Version:

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

18 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../../../codegen/cms/source_code/index"); const index_2 = require("../../../../index"); describe('api client', () => { it('is discoverable', () => { const client = new index_2.Client().cms.sourceCode; expect(Object.prototype.hasOwnProperty.call(client, 'contentApi')).toBeTruthy(); expect(index_1.ContentApi.name).toBe(client.contentApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'extractApi')).toBeTruthy(); expect(index_1.ExtractApi.name).toBe(client.extractApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'metadataApi')).toBeTruthy(); expect(index_1.MetadataApi.name).toBe(client.metadataApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'validationApi')).toBeTruthy(); expect(index_1.ValidationApi.name).toBe(client.validationApi.constructor.name); }); }); //# sourceMappingURL=sourceCode.spec.js.map