From 2aee3bf5710d0e25229e699b84a04016a7a95686 Mon Sep 17 00:00:00 2001
From: Predrag <>
Date: Fri, 12 Jan 2024 10:34:39 +0100
Subject: [PATCH] fix(NLP-12627): added test
---
packages/pipes/src/balHighlight.spec.ts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/packages/pipes/src/balHighlight.spec.ts b/packages/pipes/src/balHighlight.spec.ts
index 09346e8..397216f 100755
--- a/packages/pipes/src/balHighlight.spec.ts
+++ b/packages/pipes/src/balHighlight.spec.ts
@@ -8,4 +8,14 @@ describe('balHighlight', () => {
test('should return same text without search query', () => {
expect(balHighlight('search text', '')).toBe('search text')
})
+ test('should highlight only text, not the text inside href', () => {
+ expect(
+ balHighlight(
+ `Vertrag`,
+ 'Vertrag',
+ ),
+ ).toBe(
+ `Vertrag`,
+ )
+ })
})