mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
55d6735e7b
and remove submodules
23 lines
525 B
TypeScript
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);
|
|
}
|