From 13b16927c50436582dbd164e0aa704a897b9abf5 Mon Sep 17 00:00:00 2001 From: Caleb German Date: Thu, 7 Sep 2023 16:09:27 -0500 Subject: [PATCH] Moved Methods Around --- .../src/client/ITwinSavedViewsClient.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/saved-views-client/src/client/ITwinSavedViewsClient.test.ts b/packages/saved-views-client/src/client/ITwinSavedViewsClient.test.ts index 4368c7f3..068c039f 100644 --- a/packages/saved-views-client/src/client/ITwinSavedViewsClient.test.ts +++ b/packages/saved-views-client/src/client/ITwinSavedViewsClient.test.ts @@ -24,11 +24,6 @@ const systemUnderTest: ITwinSavedViewsClient = new ITwinSavedViewsClient({ getAccessToken: getAccessToken, }); -const confirmURL = (url: string, urlParams: string[]) => { - expect(url.startsWith(baseUrl)).toBe(true); - urlParams.forEach((urlParam) => { expect(url.includes(urlParam)).toBe(true); }); -}; - const callITwinApiTestRunner = async (expectedQueryArgs: TestQueryParams, funcUnderTest: () => Promise) => { const spy = vi.spyOn(ITwinApiHelper, "callITwinApi"); spy.mockImplementation(verifyCallITwinApiInfo(expectedQueryArgs)); @@ -47,6 +42,11 @@ const verifyCallITwinApiInfo = (queryArgs: TestQueryParams) => { }; }; +const confirmURL = (url: string, urlParams: string[]) => { + expect(url.startsWith(baseUrl)).toBe(true); + urlParams.forEach((urlParam) => { expect(url.includes(urlParam)).toBe(true); }); +}; + describe("ITwinSavedViewsClient tests for callITwinApi information transference", () => { it("getSavedViewMinimal", async () => {