From 14ffbe30a0969df009dd776c66e02f3ad7d926ef Mon Sep 17 00:00:00 2001 From: amit221 <6964675+amit221@users.noreply.github.com> Date: Tue, 24 Mar 2026 15:39:59 +0200 Subject: [PATCH] test(issues): shorten mid-token entity test comment Made-with: Cursor --- .../src/__tests__/normalize-agent-mention-token.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/src/__tests__/normalize-agent-mention-token.test.ts b/server/src/__tests__/normalize-agent-mention-token.test.ts index 6b41de87..b8a33d1d 100644 --- a/server/src/__tests__/normalize-agent-mention-token.test.ts +++ b/server/src/__tests__/normalize-agent-mention-token.test.ts @@ -14,12 +14,8 @@ describe("normalizeAgentMentionToken", () => { expect(normalizeAgentMentionToken("Baba ")).toBe("Baba"); }); - /** - * Greptile (PR review): cover an entity in the *middle* of a token, not only trailing ` ` / ` `. - * Earlier implementation *stripped* `&`, turning `Ba&ba` into `Baba` and breaking names like `M&M`. - * Current behavior decodes `&` → `&`, so the expected value is `Ba&ba`, not `Baba`. - */ - it("decodes a named entity mid-token (Ba&ba → Ba&ba, not strip to Baba)", () => { + // Mid-token entity (review asked for this shape); we decode &→&, not strip to "Baba" (that broke M&M). + it("decodes a named entity in the middle of the token", () => { expect(normalizeAgentMentionToken("Ba&ba")).toBe("Ba&ba"); });