Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:10t8imceac is past its budget: trevato/forge: "notes from the app, in the terminal > the admin lists the banned senders and unbans one; a reader has n… #8138
Check · Review · Land · Live done — Landed and live in production.
torque/forge:torque/8107-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork
1 file
changed +4
−4
test/tui-notes.test.ts +4 −4
| @@ -84,7 +84,7 @@ describe("notes from the app, in the terminal", () => { | ||
| 84 | 84 | // Filtered, so the row's presence does not depend on how many others the palette lists. |
| 85 | 85 | expect(await palette(bob, notes, [":", "Tell the"])).toContain("alice/notes — Tell the builders"); |
| 86 | 86 | expect(await palette(bob, plain, [":", "Tell the"])).not.toContain("Tell the builders"); |
| 87 | }); | |
| 87 | }, 30_000); | |
| 88 | 88 | |
| 89 | 89 | test("a note files a from-app issue as the person", async () => { |
| 90 | 90 | const text = await palette(bob, notes, [":", "Tell the", "\r", ..."the logo is blurry".split(""), "\r"]); |
| @@ -94,7 +94,7 @@ describe("notes from the app, in the terminal", () => { | ||
| 94 | 94 | const issue = getIssue(app.db, notes.id, row.issue_number)!; |
| 95 | 95 | expect(labelsFor(app.db, issue.id).map((l) => l.name)).toEqual(["from-app"]); |
| 96 | 96 | expect(issue.body).toContain("by @bob."); |
| 97 | }); | |
| 97 | }, 30_000); | |
| 98 | 98 | |
| 99 | 99 | test("a person sees their own with its status; the admin sees all and bans", async () => { |
| 100 | 100 | expect(await palette(bob, notes, [":", "Notes from", "\r"])).toContain("the logo is blurry"); |
| @@ -107,7 +107,7 @@ describe("notes from the app, in the terminal", () => { | ||
| 107 | 107 | await palette(alice, notes, [":", "Notes from", "\r", "\r", "\x1b[C", "\x1b[C", "\r"]); |
| 108 | 108 | const record = getAppBySlug(app.db, "notes")!; |
| 109 | 109 | expect(isBanned(app.db, record.id, `u:${bob.id}`)).toBe(true); |
| 110 | }); | |
| 110 | }, 30_000); | |
| 111 | 111 | |
| 112 | 112 | test("the admin lists the banned senders and unbans one; a reader has no such row", async () => { |
| 113 | 113 | const record = getAppBySlug(app.db, "notes")!; |
| @@ -122,5 +122,5 @@ describe("notes from the app, in the terminal", () => { | ||
| 122 | 122 | const again = await sendNote(app, record, notes, "production", undefined, sender, { text: "back again", page: "", viewport: "unknown" }, "ssh:again"); |
| 123 | 123 | expect(again.ok).toBe(true); |
| 124 | 124 | expect(await palette(alice, notes, [":", "Banned", "\r"])).not.toContain("Unban this sender"); |
| 125 | }); | |
| 125 | }, 30_000); | |
| 126 | 126 | }); |
new above
offline