mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 23:20:02 +00:00
20 lines
538 B
JavaScript
20 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);
|
||
|
});
|
||
|
});
|