mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-11 09:55:59 +00:00
20 lines
628 B
TypeScript
20 lines
628 B
TypeScript
import { expect, test, vi } from "vitest";
|
|
|
|
import {
|
|
buildThreadsSearchQueryOptions,
|
|
DEFAULT_THREAD_SEARCH_PARAMS,
|
|
THREAD_SEARCH_REFETCH_INTERVAL_MS,
|
|
} from "@/core/threads/thread-search-query";
|
|
|
|
test("thread search query refreshes so IM-created sessions appear in the sidebar", () => {
|
|
const search = vi.fn();
|
|
const options = buildThreadsSearchQueryOptions(
|
|
{ threads: { search } },
|
|
DEFAULT_THREAD_SEARCH_PARAMS,
|
|
);
|
|
|
|
expect(options.refetchInterval).toBe(THREAD_SEARCH_REFETCH_INTERVAL_MS);
|
|
expect(options.refetchIntervalInBackground).toBe(false);
|
|
expect(options.refetchOnWindowFocus).toBe(false);
|
|
});
|