Skip to content

Commit 2781764

Browse files
committed
change the test case
1 parent f52b16a commit 2781764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/test/codewhispererChat/tools/executeBash.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('ExecuteBash Tool', () => {
4444
})
4545

4646
it('set requiresAcceptance=true if the command has dangerous patterns', () => {
47-
const execBash = new ExecuteBash({ command: 'ls && rm -rf /' })
47+
const execBash = new ExecuteBash({ command: 'rm -rf /' })
4848
const needsAcceptance = execBash.requiresAcceptance().requiresAcceptance
4949
assert.equal(needsAcceptance, true, 'Should require acceptance for dangerous pattern')
5050
assert.equal(

0 commit comments

Comments
 (0)