Warp/node_modules/mark.js/test/specs/basic/diacritics.js
2024-01-05 19:14:38 +07:00

21 lines
615 B
JavaScript

'use strict';
describe('basic mark with diacritics', function() {
var $ctx;
beforeEach(function(done) {
loadFixtures('basic/diacritics.html');
$ctx = $('.basic-diacritics');
// including a term with a "s" and a whitespace to check "merge blanks"
// behavior in combination with diacritics
new Mark($ctx[0]).mark(['dolor', 'amet', 'justo', 'lores ipsum'], {
'separateWordSearch': false,
'done': function() {
done();
}
});
});
it('should treat normal and diacritic characters equally', function() {
expect($ctx.find('mark')).toHaveLength(15);
});
});