diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-25 11:28:51 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-25 11:28:51 -0700 |
| commit | 28abd83ad92c24a4107803bd03e510387f2014c2 (patch) | |
| tree | fc6ae7d04d59751bdbe348f320f50e08eef77ff7 /plugins/code-modernization/tests | |
| parent | d49ccb3844876e35262a32f145b7b717646da733 (diff) | |
code-modernization: rename the pane's rule review command to /modernize-review-pane
The pane's bare /modernize-review took the name of the plugin's own review command, so typing the short form in a pane-enabled session opened the pane's cards instead of the pop-up review. The pane's version is now /modernize-review-pane, and /modernize-review always runs the plugin command. Both still write the same review file.
Diffstat (limited to 'plugins/code-modernization/tests')
| -rw-r--r-- | plugins/code-modernization/tests/mount.test.ts | 2 | ||||
| -rw-r--r-- | plugins/code-modernization/tests/register.test.ts | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/code-modernization/tests/mount.test.ts b/plugins/code-modernization/tests/mount.test.ts index de4da75b..4c70f28d 100644 --- a/plugins/code-modernization/tests/mount.test.ts +++ b/plugins/code-modernization/tests/mount.test.ts @@ -72,7 +72,7 @@ describe('what the plugin draws is accepted by the terminal', () => { expect(await accepted($)({ ...BAND, plugin: PLUGIN })).toBe('terminal') - await $.command.run(command('modernize-review', 'all')) + await $.command.run(command('modernize-review-pane', 'all')) await $.ui.render(BAND) await $.ui.press({ plugin: PLUGIN, key: 'prev' }) diff --git a/plugins/code-modernization/tests/register.test.ts b/plugins/code-modernization/tests/register.test.ts index e1dbce63..92403d4f 100644 --- a/plugins/code-modernization/tests/register.test.ts +++ b/plugins/code-modernization/tests/register.test.ts @@ -15,7 +15,7 @@ describe('start and pane', () => { mock.clock(on) await $.session.start(SESSION) - expect(world.commands.sort()).toEqual(['modernize-panel', 'modernize-review', 'modernize-sign']) + expect(world.commands.sort()).toEqual(['modernize-panel', 'modernize-review-pane', 'modernize-sign']) expect(world.opened).toEqual([]) }) @@ -196,7 +196,7 @@ describe('start and pane', () => { await $.tool.call({ tool: 'Bash', command: 'mvn -q test', agentId } as never) } - await $.command.run(command('modernize-review', 'all')) + await $.command.run(command('modernize-review-pane', 'all')) const allowed = /^(#[0-9a-f]{6}|suggestion|success|error|warning|claude|inactive|subtle|text)$/ @@ -410,7 +410,7 @@ describe('a busy fleet', () => { }) describe('review deck', () => { - test('/modernize-review draws the first flagged card in the band, and a digit decides it', async ($, on) => { + test('/modernize-review-pane draws the first flagged card in the band, and a digit decides it', async ($, on) => { const world = worldOf(on, FULL) const clock = mock.clock(on) @@ -418,7 +418,7 @@ describe('review deck', () => { await $.session.start(SESSION) expect(textOf(await $.ui.render(BAND)), 'closed: the band holds only the bar that shows the pane').toContain('show pane') - expect(await $.command.run(command('modernize-review'))).toEqual({ text: 'Reviewing 2 rules.' }) + expect(await $.command.run(command('modernize-review-pane'))).toEqual({ text: 'Reviewing 2 rules.' }) const card = await $.ui.render(BAND) const text = textOf(card) @@ -448,7 +448,7 @@ describe('review deck', () => { worldOf(on, FULL) mock.clock(on) await $.session.start(SESSION) - await $.command.run(command('modernize-review', 'all')) + await $.command.run(command('modernize-review-pane', 'all')) for (const maxRows of [12, 16, 20, 30]) { const input = { ...BAND, props: { ...BAND.props, maxRows } } @@ -470,7 +470,7 @@ describe('review deck', () => { on('ui.render', () => ({ type: 'Text', children: ['engine'] })) await $.session.start(SESSION) - await $.command.run(command('modernize-review', 'all')) + await $.command.run(command('modernize-review-pane', 'all')) await $.ui.render(BAND) await $.ui.press({ plugin: NAME, key: 'prev' }) @@ -531,7 +531,7 @@ describe('review deck', () => { mock.clock(on) on('ui.render', () => ({ type: 'Text', children: ['engine'] })) await $.session.start(SESSION) - await $.command.run(command('modernize-review', 'p0')) + await $.command.run(command('modernize-review-pane', 'p0')) await $.ui.render(BAND) await $.ui.press({ plugin: NAME, key: 'close' }) |
