Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BlowaterNostr committed Apr 8, 2024
1 parent a4f9985 commit a0c40f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from "./_libs.ts";
import {
limit,
newSub_multiple_filters,
no_event,
} from "https://raw.githubusercontent.com/BlowaterNostr/nostr.ts/main/relay-single-test.ts";

Expand All @@ -37,7 +38,7 @@ Deno.test("main", async (t) => {
password: "123",
port: 8080,
default_policy: {
allowed_kinds: "none",
allowed_kinds: [NostrKind.Long_Form],
},
kv: await test_kv(),
}) as Relay;
Expand Down Expand Up @@ -143,6 +144,7 @@ Deno.test("main", async (t) => {
await t.step("nip1", async () => {
await limit(relay.url)();
await no_event(relay.url)();
await newSub_multiple_filters(relay.url)();
});

await client.close();
Expand Down
2 changes: 1 addition & 1 deletion ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async function handle_cmd_event(args: {
respond_ok(
event,
false,
"this kind is blocked",
`kind ${event.kind} is blocked`,
),
),
);
Expand Down

0 comments on commit a0c40f5

Please sign in to comment.