summaryrefslogtreecommitdiff
path: root/packages/cli/src/nonInteractiveCli.test.ts
diff options
context:
space:
mode:
authorJosh Soref <[email protected]>2025-07-21 17:54:44 -0400
committerGitHub <[email protected]>2025-07-21 21:54:44 +0000
commitdc2ac144b7059ec2d66f1e90316df40d3822c8b5 (patch)
tree63c9bece313ae92c841ab2808253c9cc6eaee755 /packages/cli/src/nonInteractiveCli.test.ts
parent8be5f8038a50fb5b2010590c8a18a4558da1663c (diff)
Various spelling improvements (#3497)
Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Sandy Tao <[email protected]>
Diffstat (limited to 'packages/cli/src/nonInteractiveCli.test.ts')
-rw-r--r--packages/cli/src/nonInteractiveCli.test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/cli/src/nonInteractiveCli.test.ts b/packages/cli/src/nonInteractiveCli.test.ts
index 6cbb630d..8b0419f1 100644
--- a/packages/cli/src/nonInteractiveCli.test.ts
+++ b/packages/cli/src/nonInteractiveCli.test.ts
@@ -229,14 +229,14 @@ describe('runNonInteractive', () => {
it('should not exit if a tool is not found, and should send error back to model', async () => {
const functionCall: FunctionCall = {
id: 'fcNotFound',
- name: 'nonExistentTool',
+ name: 'nonexistentTool',
args: {},
};
const errorResponsePart: Part = {
functionResponse: {
- name: 'nonExistentTool',
+ name: 'nonexistentTool',
id: 'fcNotFound',
- response: { error: 'Tool "nonExistentTool" not found in registry.' },
+ response: { error: 'Tool "nonexistentTool" not found in registry.' },
},
};
@@ -246,8 +246,8 @@ describe('runNonInteractive', () => {
vi.mocked(mockCoreExecuteToolCall).mockResolvedValue({
callId: 'fcNotFound',
responseParts: [errorResponsePart],
- resultDisplay: 'Tool "nonExistentTool" not found in registry.',
- error: new Error('Tool "nonExistentTool" not found in registry.'),
+ resultDisplay: 'Tool "nonexistentTool" not found in registry.',
+ error: new Error('Tool "nonexistentTool" not found in registry.'),
});
const stream1 = (async function* () {
@@ -278,7 +278,7 @@ describe('runNonInteractive', () => {
);
expect(consoleErrorSpy).toHaveBeenCalledWith(
- 'Error executing tool nonExistentTool: Tool "nonExistentTool" not found in registry.',
+ 'Error executing tool nonexistentTool: Tool "nonexistentTool" not found in registry.',
);
expect(mockProcessExit).not.toHaveBeenCalled();