UNPKG

@hubspot/api-client

Version:

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

18 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../../../codegen/automation/actions/index"); const index_2 = require("../../../../index"); describe('api client', () => { it('is discoverable', () => { const client = new index_2.Client().automation.actions; expect(Object.prototype.hasOwnProperty.call(client, 'callbacksApi')).toBeTruthy(); expect(index_1.CallbacksApi.name).toBe(client.callbacksApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'definitionsApi')).toBeTruthy(); expect(index_1.DefinitionsApi.name).toBe(client.definitionsApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'functionsApi')).toBeTruthy(); expect(index_1.FunctionsApi.name).toBe(client.functionsApi.constructor.name); expect(Object.prototype.hasOwnProperty.call(client, 'revisionsApi')).toBeTruthy(); expect(index_1.RevisionsApi.name).toBe(client.revisionsApi.constructor.name); }); }); //# sourceMappingURL=actions.spec.js.map