2023-09-07 13:11:59 +00:00
|
|
|
/** @jsx h */
|
|
|
|
import { h } from "https://esm.sh/preact@10.17.1";
|
|
|
|
import { render } from "https://esm.sh/preact@10.17.1";
|
|
|
|
import { PrivateKey } from "../lib/nostr-ts/key.ts";
|
2023-09-10 17:56:37 +00:00
|
|
|
import { testEventBus } from "./_setup.test.ts";
|
2023-09-07 13:11:59 +00:00
|
|
|
import { SignIn } from "./signIn.tsx";
|
|
|
|
|
|
|
|
render(
|
|
|
|
<SignIn
|
2023-09-10 17:56:37 +00:00
|
|
|
eventBus={testEventBus}
|
2023-09-07 13:11:59 +00:00
|
|
|
privateKey={PrivateKey.Generate().hex}
|
|
|
|
/>,
|
|
|
|
document.body,
|
|
|
|
);
|
|
|
|
|
2023-09-10 17:56:37 +00:00
|
|
|
for await (const e of testEventBus.onChange()) {
|
2023-09-07 13:11:59 +00:00
|
|
|
console.log(e);
|
|
|
|
}
|