diff --git a/src/utils/HighlightUtils.ts b/src/utils/HighlightUtils.ts index 30fc907dc0..222891d283 100644 --- a/src/utils/HighlightUtils.ts +++ b/src/utils/HighlightUtils.ts @@ -259,18 +259,19 @@ export class HighlightUtils { break; } - highlighted += _.escape(content.slice(last, start)); - highlighted += `um dolor sit amet, ctetur adipisicing elit, sed do eiusmod tempor incididunt ut'; + expect(HighlightUtils.highlightString(lorem, highlights, null, 'coveo-highlight')).toBe(expectedHighlight); + }); + it('should wrap the passed highlights with tags using the specified class name', function () { let highlights: IHighlight[] = [ { offset: 3, length: 5 },