Skip to content

Commit

Permalink
Moved Methods Around
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebGerman committed Sep 7, 2023
1 parent b3ab060 commit 13b1692
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>) => {
const spy = vi.spyOn(ITwinApiHelper, "callITwinApi");
spy.mockImplementation(verifyCallITwinApiInfo(expectedQueryArgs));
Expand All @@ -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 () => {
Expand Down

0 comments on commit 13b1692

Please sign in to comment.