Format
tests / tests (push) Failing after 5m17s

This commit is contained in:
Jon Staab
2026-06-20 10:36:40 -07:00
parent d2b57c559d
commit 22a666d497
53 changed files with 388 additions and 145 deletions
@@ -24,7 +24,14 @@ const makeEvent = (overrides: Partial<TrustedEvent> = {}): TrustedEvent =>
describe("RoomAddMember", () => {
it("reads pubkeys and group", async () => {
const op = await RoomAddMember.fromEvent(
makeEvent({tags: [["h", "room1"], ["p", a], ["p", b], ["alt", "x"]]}),
makeEvent({
tags: [
["h", "room1"],
["p", a],
["p", b],
["alt", "x"],
],
}),
)
expect(op.kind).toBe(ROOM_ADD_MEMBER)
@@ -34,7 +41,14 @@ describe("RoomAddMember", () => {
it("round-trips with no duplicated tags", async () => {
const op = await RoomAddMember.fromEvent(
makeEvent({tags: [["h", "room1"], ["p", a], ["p", b], ["alt", "x"]]}),
makeEvent({
tags: [
["h", "room1"],
["p", a],
["p", b],
["alt", "x"],
],
}),
)
const tmpl = await op.builder().toTemplate(signer)