2023-10-24 03:53:26 +00:00
|
|
|
/** @jsx h */
|
|
|
|
import { h, render } from "https://esm.sh/preact@10.17.1";
|
2023-11-17 07:06:11 +00:00
|
|
|
import { testEventBus, testEventMarker, testEventsAdapter, testRelayAdapter } from "./_setup.test.ts";
|
2023-10-24 03:53:26 +00:00
|
|
|
import { EditGroup } from "./edit-group.tsx";
|
|
|
|
import { InMemoryAccountContext } from "../lib/nostr-ts/nostr.ts";
|
|
|
|
import { fail } from "https://deno.land/std@0.176.0/testing/asserts.ts";
|
2023-11-16 13:22:18 +00:00
|
|
|
import { Datebase_View } from "../database.ts";
|
2023-10-24 03:53:26 +00:00
|
|
|
import { EditProfile } from "./edit-profile.tsx";
|
|
|
|
|
2023-11-17 07:50:53 +00:00
|
|
|
const database = await test_db_view();
|
2023-11-16 13:22:18 +00:00
|
|
|
|
2023-10-24 03:53:26 +00:00
|
|
|
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);
|
|
|
|
}
|