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

23 lines
525 B
TypeScript

/** @jsx h */
import { h, render } from "preact";
import { InMemoryAccountContext } from "@blowater/nostr-sdk";
import { test_db_view, testEventBus } from "./_setup.test.ts";
import { EditProfile } from "./edit-profile.tsx";
const database = await test_db_view();
const ctx = InMemoryAccountContext.Generate();
render(
<EditProfile
emit={testEventBus.emit}
ctx={ctx}
profileGetter={database}
/>,
document.body,
);
for await (const e of testEventBus.onChange()) {
console.log(e);
}