diff --git a/src/background/auth/partnerIntegrations/launchAuthIntegration.test.ts b/src/background/auth/partnerIntegrations/launchAuthIntegration.test.ts index f1fc91a318..7537a20f33 100644 --- a/src/background/auth/partnerIntegrations/launchAuthIntegration.test.ts +++ b/src/background/auth/partnerIntegrations/launchAuthIntegration.test.ts @@ -15,9 +15,10 @@ * along with this program. If not, see . */ -import { launchAuthIntegration, registry } from "@/background/messenger/api"; +import { registry } from "@/background/messenger/api"; import oauth2IntegrationDefinition from "@contrib/integrations/automation-anywhere-oauth2.yaml"; import { registryIdFactory } from "@/testUtils/factories/stringFactories"; +import { launchAuthIntegration } from "@/background/auth/partnerIntegrations/launchAuthIntegration"; jest.mocked(registry.find).mockResolvedValue({ id: (oauth2IntegrationDefinition!.metadata as any).id, diff --git a/src/background/auth/partnerIntegrations/refreshPartnerAuthentication.test.ts b/src/background/auth/partnerIntegrations/refreshPartnerAuthentication.test.ts index 0f5f4b8a46..c33a12333a 100644 --- a/src/background/auth/partnerIntegrations/refreshPartnerAuthentication.test.ts +++ b/src/background/auth/partnerIntegrations/refreshPartnerAuthentication.test.ts @@ -81,8 +81,8 @@ describe("refreshPartnerAuthentication", () => { token: "new_test_token", }); await refreshPartnerAuthentication(); - expect(axiosMock.history.post).toHaveLength(1); - const axiosRequestConfig = axiosMock.history.post[0]; + expect(axiosMock.history.post).toBeArrayOfSize(1); + const axiosRequestConfig = axiosMock.history.post![0]; expect(axiosRequestConfig).toMatchObject({ method: "post", url: "https://my.testrefreshurl.com", diff --git a/src/tsconfig.strictNullChecks.json b/src/tsconfig.strictNullChecks.json index dfd1aee974..8046a5019c 100644 --- a/src/tsconfig.strictNullChecks.json +++ b/src/tsconfig.strictNullChecks.json @@ -114,6 +114,7 @@ "./background/auth/partnerIntegrations/getPartnerPrincipals.ts", "./background/auth/partnerIntegrations/launchAuthIntegration.test.ts", "./background/auth/partnerIntegrations/launchAuthIntegration.ts", + "./background/auth/partnerIntegrations/refreshPartnerAuthentication.test.ts", "./background/auth/partnerIntegrations/refreshPartnerAuthentication.ts", "./background/auth/partnerIntegrations/types.ts", "./background/axiosFetch.ts",