blowater/app/UI/search.test.tsx
Water Blower 55d6735e7b
use esbuild & JSR (#486)
and remove submodules
2024-07-03 15:46:31 +08:00

17 lines
483 B
TypeScript

import { h, render } from "preact";
import { Search } from "./search.tsx";
import { testEventBus } from "./_setup.test.ts";
import { DexieDatabase, NewIndexedDB } from "./dexie-db.ts";
import { Database_View } from "../database.ts";
const indexed_db = NewIndexedDB() as DexieDatabase;
render(
<Search
profileGetter={await Database_View.New(indexed_db, indexed_db, indexed_db)}
emit={testEventBus.emit}
placeholder="search"
/>,
document.body,
);