blowater/app/UI/edit-profile.test.tsx

23 lines
557 B
TypeScript
Raw Normal View History

/** @jsx h */
import { h, render } from "https://esm.sh/preact@10.17.1";
2024-01-01 17:28:10 +00:00
import { InMemoryAccountContext } from "../../libs/nostr.ts/nostr.ts";
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);
}