blowater/app/UI/edit-profile.test.tsx
BlowaterNostr e86101ae7f
5.0.0: Redesign & Rearchitecture (#380)
* remove nip-07 extension sign-in temporarily
* bring kind-1 back!
* separated relay views
2024-03-15 21:44:17 +08:00

23 lines
557 B
TypeScript

/** @jsx h */
import { h, render } from "https://esm.sh/preact@10.17.1";
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);
}