@hubspot/api-client
Version:
NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files
16 lines • 886 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../../../codegen/oauth/index");
const index_2 = require("../../../index");
describe('api client', () => {
it('is discoverable', () => {
const client = new index_2.Client().oauth;
expect(Object.prototype.hasOwnProperty.call(client, 'accessTokensApi')).toBeTruthy();
expect(index_1.AccessTokensApi.name).toBe(client.accessTokensApi.constructor.name);
expect(Object.prototype.hasOwnProperty.call(client, 'refreshTokensApi')).toBeTruthy();
expect(index_1.RefreshTokensApi.name).toBe(client.refreshTokensApi.constructor.name);
expect(Object.prototype.hasOwnProperty.call(client, 'tokensApi')).toBeTruthy();
expect(index_1.TokensApi.name).toBe(client.tokensApi.constructor.name);
});
});
//# sourceMappingURL=oauth.spec.js.map