(text: string)
| 18 | const SOS_PAYLOAD = "\x1bXpayload\x1b\\"; |
| 19 | |
| 20 | function expectNoUnsafeTerminalControls(text: string) { |
| 21 | expect(text).not.toContain(OSC52_CLIPBOARD); |
| 22 | expect(text).not.toContain(CSI_CLEAR_SCREEN); |
| 23 | expect(text).not.toContain(DCS_PAYLOAD); |
| 24 | expect(text).not.toContain(APC_PAYLOAD); |
| 25 | expect(text).not.toContain(PM_PAYLOAD); |
| 26 | expect(text).not.toContain(SOS_PAYLOAD); |
| 27 | expect(text).not.toContain("\x07"); |
| 28 | expect(text).not.toContain("\r"); |
| 29 | expect(text).not.toContain("\b"); |
| 30 | expect(text).not.toContain("\x1b"); |
| 31 | } |
| 32 | |
| 33 | describe("static diff pager", () => { |
| 34 | test("renders diff-like stdin as non-interactive ANSI output", async () => { |
no outgoing calls
no test coverage detected