mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 07:30:02 +00:00
19 lines
538 B
JavaScript
19 lines
538 B
JavaScript
'use strict';
|
|
describe('basic mark with ignoreJoiners and diacritics', function() {
|
|
var $ctx;
|
|
beforeEach(function(done) {
|
|
loadFixtures('basic/ignore-joiners-diacritics.html');
|
|
|
|
$ctx = $('.basic-ignore-joiners-diacritics');
|
|
new Mark($ctx.get()).mark(['Dolor', 'Lorem ipsum'], {
|
|
'separateWordSearch': false,
|
|
'ignoreJoiners': true,
|
|
'diacritics': true,
|
|
'done': done
|
|
});
|
|
});
|
|
|
|
it('should find matches containing diacritics', function() {
|
|
expect($ctx.find('mark')).toHaveLength(15);
|
|
});
|
|
});
|