Public: anyone can read this; the crew can change it.
Say the screen and the fix when a terminal r binding is unlisted #17174
Merged 45h 36m ago, live in production
r-own → main 0 commits
1 file
changed +5
−2
test/keymap-terminal.test.ts +5 −2
| @@ -72,8 +72,11 @@ test("no terminal screen reads itself again on r: R does, from the map", () => { | ||
| 72 | 72 | |
| 73 | 73 | test("every screen that binds r for its own verb is listed with what it does, and the list holds only screens that still do", () => { |
| 74 | 74 | const sources = terminalSources(); |
| 75 | const binding = Object.keys(sources).filter((p) => [...sources[p]!.matchAll(R_BINDING)].length > 0).sort(); | |
| 76 | expect(binding).toEqual(Object.keys(OWN_R).sort()); | |
| 75 | const binding = Object.keys(sources).filter((p) => [...sources[p]!.matchAll(R_BINDING)].length > 0); | |
| 76 | // Said so a pull author fixes it from the check alone. | |
| 77 | const unlisted = binding.filter((p) => !(p in OWN_R)).map((p) => `${p} binds r: add it to OWN_R in test/keymap-terminal.test.ts with what r does there, or bind keyOf("reread") (R) if r reads the screen again`); | |
| 78 | const gone = Object.keys(OWN_R).filter((p) => !binding.includes(p)).map((p) => `${p} no longer binds r: remove it from OWN_R in test/keymap-terminal.test.ts`); | |
| 79 | expect([...unlisted, ...gone]).toEqual([]); | |
| 77 | 80 | }); |
| 78 | 81 | |
| 79 | 82 | test("the scan catches the shapes a refresh on r takes", () => { |
new above
offline