mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
e86101ae7f
* remove nip-07 extension sign-in temporarily * bring kind-1 back! * separated relay views
23 lines
557 B
TypeScript
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);
|
|
}
|