Skip to content

Commit 41e2f17

Browse files
committed
test(nips/02): do not use lib/env anymore
1 parent 3208ae4 commit 41e2f17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nips/02_test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from "../lib/std/testing.ts";
22
import { assert } from "../lib/std/assert.ts";
3-
import { env } from "../lib/env.ts";
43
import { EventInit } from "../lib/events.ts";
4+
import type { PublicKey } from "../mod.ts";
55
import "./02.ts";
66

77
describe("EventInit<3>", () => {
@@ -10,7 +10,7 @@ describe("EventInit<3>", () => {
1010
kind: 3,
1111
content: "",
1212
tags: [
13-
["p", env.PUBLIC_KEY, "wss://nos.lol", "string"],
13+
["p", "test" as PublicKey, "wss://nos.lol", "string"],
1414
],
1515
} satisfies EventInit<3>;
1616
assert(init);
@@ -21,7 +21,7 @@ describe("EventInit<3>", () => {
2121
content: "",
2222
tags: [
2323
// @ts-expect-error: tag name should be "p"
24-
["e", env.PUBLIC_KEY, "wss://nos.lol", "string"],
24+
["e", "test" as PublicKey, "wss://nos.lol", "string"],
2525
],
2626
} satisfies EventInit<3>;
2727
assert(init);
@@ -32,7 +32,7 @@ describe("EventInit<3>", () => {
3232
// @ts-expect-error: content should be empty string
3333
content: "string",
3434
tags: [
35-
["p", env.PUBLIC_KEY, "wss://nos.lol", "string"],
35+
["p", "test" as PublicKey, "wss://nos.lol", "string"],
3636
],
3737
} satisfies EventInit<3>;
3838
assert(init);

0 commit comments

Comments
 (0)