Skip to content

Commit 2ecf96b

Browse files
committed
test(cli): use a flag batch-delete still refuses as the guessed-flag example
1 parent c3e6b2b commit 2ecf96b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/sim-cli/src/embed-isolation.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('embedded CLI output ownership', () => {
9393
throw new Error('a parse error must not reach the API')
9494
}
9595
const [guessed, dashedId, noArguments, noOptions] = await Promise.all([
96-
runEmbeddedCli(['tables', 'rows', 'batch-delete', 'tbl_1', '--row-ids', 'row_1', '--yes'], {
96+
runEmbeddedCli(['tables', 'rows', 'batch-delete', 'tbl_1', '--ids', 'row_1', '--yes'], {
9797
...identity,
9898
transport,
9999
}),
@@ -102,7 +102,7 @@ describe('embedded CLI output ownership', () => {
102102
runEmbeddedCli(['workspaces', 'get', 'ws_1', '--verbose'], { ...identity, transport }),
103103
])
104104
expect(guessed.exitCode).toBe(1)
105-
expect(guessed.stderr).toContain("unknown option '--row-ids'")
105+
expect(guessed.stderr).toContain("unknown option '--ids'")
106106
expect(guessed.stderr).toContain('Options for sim tables rows batch-delete:')
107107
expect(guessed.stderr).toContain('--row <value...>')
108108
expect(dashedId.exitCode).toBe(1)

0 commit comments

Comments
 (0)