From 453d116fbcf4f2d5695ae4687afeece6ede5505f Mon Sep 17 00:00:00 2001 From: kigland Date: Wed, 30 Sep 2026 09:51:31 +0800 Subject: [PATCH] test(augment): assert exact recovered symbol --- gitnexus/test/integration/augmentation.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitnexus/test/integration/augmentation.test.ts b/gitnexus/test/integration/augmentation.test.ts index 21dbe7602..f28eec666 100644 --- a/gitnexus/test/integration/augmentation.test.ts +++ b/gitnexus/test/integration/augmentation.test.ts @@ -140,7 +140,7 @@ withTestLbugDB( // definition. The graph-name fallback must recover the exact node. const result = await augment('login', handle.dbPath); expect(result).toContain('[GitNexus]'); - expect(result).toContain('login'); + expect(result).toMatch(/^login \(src\/auth\.ts\)$/m); } finally { spy.mockRestore(); } @@ -161,7 +161,7 @@ withTestLbugDB( // FTS-ranked files defines it. Exact-name lookup must still recover it. const result = await augment('login', handle.dbPath); expect(result).toContain('[GitNexus]'); - expect(result).toContain('login'); + expect(result).toMatch(/^login \(src\/auth\.ts\)$/m); } finally { spy.mockRestore(); }