From 3cd9a5ad2e300f64039b1cd211a6ec23e2ee6fd7 Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Thu, 7 Dec 2023 17:26:07 -0500 Subject: [PATCH] use local-dev-lib for getAccessToken --- packages/cli/commands/accounts/info.js | 4 +++- packages/cli/lib/__tests__/validation.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/commands/accounts/info.js b/packages/cli/commands/accounts/info.js index 74e7d9b9e..6ea4727c3 100644 --- a/packages/cli/commands/accounts/info.js +++ b/packages/cli/commands/accounts/info.js @@ -1,6 +1,8 @@ const { logger } = require('@hubspot/cli-lib/logger'); const { getAccountConfig } = require('@hubspot/local-dev-lib/config'); -const { getAccessToken } = require('@hubspot/cli-lib/personalAccessKey.js'); +const { + getAccessToken, +} = require('@hubspot/local-dev-lib/personalAccessKey.js'); const { getAccountId, addAccountOptions, diff --git a/packages/cli/lib/__tests__/validation.js b/packages/cli/lib/__tests__/validation.js index 13c4673bd..4393a0ef0 100644 --- a/packages/cli/lib/__tests__/validation.js +++ b/packages/cli/lib/__tests__/validation.js @@ -11,7 +11,7 @@ jest.mock('@hubspot/cli-lib'); jest.mock('@hubspot/local-dev-lib/config'); jest.mock('@hubspot/cli-lib/logger'); jest.mock('@hubspot/cli-lib/oauth'); -jest.mock('@hubspot/cli-lib/personalAccessKey'); +jest.mock('@hubspot/local-dev-lib/personalAccessKey'); jest.mock('../commonOpts'); describe('validation', () => {