From 4f3a5230b81f96eeedde672f959ee73700386f41 Mon Sep 17 00:00:00 2001 From: Wojciech Duda <69160975+wojd0@users.noreply.github.com> Date: Tue, 18 Feb 2025 12:15:11 +0100 Subject: [PATCH] AAE-30882 Reduce imports to specfile --- lib/js-api/test/superagentHttpClient.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/js-api/test/superagentHttpClient.spec.ts b/lib/js-api/test/superagentHttpClient.spec.ts index 9204e37b15..e29d53ae5e 100644 --- a/lib/js-api/test/superagentHttpClient.spec.ts +++ b/lib/js-api/test/superagentHttpClient.spec.ts @@ -19,7 +19,7 @@ import { SuperagentHttpClient } from '../src/superagentHttpClient'; import { FetchResponse, ofetch } from 'ofetch'; import { RequestOptions } from '../src/api-clients/http-client.interface'; import { Emitters } from '@alfresco/adf-core/api'; -import * as utils from '../src/utils'; +import { isBrowser } from '../src/utils'; jest.mock('ofetch', () => ({ ofetch: jest.fn() @@ -177,7 +177,7 @@ describe('SuperagentHttpClient', () => { }; // Override isBrowser to simulate a non-browser environment - (utils.isBrowser as jest.Mock).mockReturnValue(false); + (isBrowser as jest.Mock).mockReturnValue(false); const request = client['buildRequest']({ httpMethod,