summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/edit.test.ts
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2025-06-29 20:53:59 +0100
committerGitHub <[email protected]>2025-06-29 19:53:59 +0000
commitdbe63e7234b0ea2577f84aab774ef011d300745f (patch)
treeff8ab733d08a4d75002ab58ef77d8530ce3da6c5 /packages/core/src/tools/edit.test.ts
parent0cfaeedf03f73f427c74184cb08b6779c11bd7d3 (diff)
fix: Correct pluralization of the number of occurrences in `EditTool` tool errors (#2463)
Diffstat (limited to 'packages/core/src/tools/edit.test.ts')
-rw-r--r--packages/core/src/tools/edit.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/core/src/tools/edit.test.ts b/packages/core/src/tools/edit.test.ts
index 9143f3bd..1341fdd0 100644
--- a/packages/core/src/tools/edit.test.ts
+++ b/packages/core/src/tools/edit.test.ts
@@ -486,10 +486,10 @@ describe('EditTool', () => {
// The default mockEnsureCorrectEdit will return 2 occurrences for 'old'
const result = await tool.execute(params, new AbortController().signal);
expect(result.llmContent).toMatch(
- /Expected 1 occurrences but found 2 for old_string in file/,
+ /Expected 1 occurrence but found 2 for old_string in file/,
);
expect(result.returnDisplay).toMatch(
- /Failed to edit, expected 1 occurrence\(s\) but found 2/,
+ /Failed to edit, expected 1 occurrence but found 2/,
);
});
@@ -532,7 +532,7 @@ describe('EditTool', () => {
/Expected 3 occurrences but found 2 for old_string in file/,
);
expect(result.returnDisplay).toMatch(
- /Failed to edit, expected 3 occurrence\(s\) but found 2/,
+ /Failed to edit, expected 3 occurrences but found 2/,
);
});