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
+16 -2
View File
@@ -24,7 +24,14 @@ const makeEvent = (overrides: Partial<TrustedEvent> = {}): TrustedEvent =>
describe("RoomAdmins", () => {
it("reads represented tags", async () => {
const room = await RoomAdmins.fromEvent(
makeEvent({tags: [["d", "room1"], ["p", a], ["p", b], ["alt", "x"]]}),
makeEvent({
tags: [
["d", "room1"],
["p", a],
["p", b],
["alt", "x"],
],
}),
)
expect(room.identifier()).toBe("room1")
@@ -33,7 +40,14 @@ describe("RoomAdmins", () => {
it("round-trips with no duplicated tags", async () => {
const room = await RoomAdmins.fromEvent(
makeEvent({tags: [["d", "room1"], ["p", a], ["p", b], ["alt", "x"]]}),
makeEvent({
tags: [
["d", "room1"],
["p", a],
["p", b],
["alt", "x"],
],
}),
)
const tmpl = await room.builder().toTemplate(signer)