initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { liveEventSchema, makeEvent } from "../dist/index.js";
|
||||
test("protocol parses typed event", () => {
|
||||
const event = makeEvent("1", "live.enter", { viewer: { uid: "42", name: "观众" } });
|
||||
assert.equal(liveEventSchema.parse(event).type, "live.enter");
|
||||
});
|
||||
Reference in New Issue
Block a user