/
kochenov
/
universal-modular
Обзор
Документация
Войти
/
kochenov
/
universal-modular
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/mark.js/test/specs/basic/entities.js
28 строк
767 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 HTML entities', function() { var $ctx1, $ctx2; beforeEach(function(done) { loadFixtures('basic/entities.html'); $ctx1 = $('.basic-entities > div:first-child'); $ctx2 = $('.basic-entities > div:last-child'); new Mark($ctx1[0]).mark('Lorem © ipsum', { 'diacritics': false, 'separateWordSearch': false, 'done': function() { new Mark($ctx2[0]).mark('justo √ duo', { 'diacritics': false, 'separateWordSearch': false, 'done': function() { done(); } }); } }); }); it('should wrap matches', function() { expect($ctx1.find('mark')).toHaveLength(1); expect($ctx2.find('mark')).toHaveLength(1); }); });