fix formatting

This commit is contained in:
Sung-Hyun Kang (from Dev Box) 2023-11-10 15:18:51 -06:00
parent e626f5218d
commit d862b929ec
2 changed files with 9 additions and 6 deletions

View File

@ -35,9 +35,12 @@ import { QueryCopilotState, useQueryCopilot } from "hooks/useQueryCopilot";
import { useTabs } from "hooks/useTabs"; import { useTabs } from "hooks/useTabs";
import * as StringUtility from "../../../Shared/StringUtility"; import * as StringUtility from "../../../Shared/StringUtility";
async function fetchWithTimeout(url: string, headers: { async function fetchWithTimeout(
url: string,
headers: {
[x: string]: string; [x: string]: string;
}) { },
) {
const timeout = 10000; const timeout = 10000;
const options = { timeout }; const options = { timeout };
@ -47,7 +50,7 @@ async function fetchWithTimeout(url: string, headers: {
const response = await window.fetch(url, { const response = await window.fetch(url, {
headers, headers,
...options, ...options,
signal: controller.signal signal: controller.signal,
}); });
clearTimeout(id); clearTimeout(id);

View File

@ -43,6 +43,6 @@ test("Resource token", async () => {
name: "explorer", name: "explorer",
}); });
await explorer.textContent(`css=.dataResourceTree >> "${collectionId}"`, { await explorer.textContent(`css=.dataResourceTree >> "${collectionId}"`, {
timeout: 50000 timeout: 50000,
}); });
}); });