/
kochenov
/
universal-modular
Обзор
Документация
Войти
/
kochenov
/
universal-modular
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/mark.js/test/specs/basic/escape.js
29 строк
944 B
Kochenov Dmitry
feat(foundation): Шаг 1.3 — Установить Node.js 24 + VitePress + настроить конфигурацию
10 июл 2026, 11:06
10 июл 2026, 11:06
70eff21
Код
Авторство
О чём код?
'use strict'; describe('basic mark with regex characters', function() { var $ctx; beforeEach(function(done) { loadFixtures('basic/escape.html'); $ctx = $('.basic-escape'); new Mark($ctx[0]).mark([ '39,00 €', '0.009 €', 'Unk?nown', 'Some+>thing', 'www.happy.com\\' ], { 'diacritics': false, 'separateWordSearch': false, 'done': function() { done(); } }); }); it('should escape search terms and wrap matches', function() { expect($ctx.find('mark')).toHaveLength(5); }); it('should not modify text node values', function() { expect($ctx.find('mark').get(0)).toContainText('39,00 €'); expect($ctx.find('mark').get(1)).toContainText('0.009 €'); expect($ctx.find('mark').get(2)).toContainText('Unk?nown'); expect($ctx.find('mark').get(3)).toContainText('Some+>thing'); expect($ctx.find('mark').get(4)).toContainText('www.happy.com\\'); }); });