first-commit
Some checks failed
CI Pipeline / build (push) Failing after 3m23s

This commit is contained in:
2025-08-27 14:05:33 +08:00
commit 9e1b8bdc9d
5159 changed files with 1081326 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
'use strict';
describe('basic mark with wildcards and synonyms', function() {
var $ctx1, $ctx2;
beforeEach(function(done) {
loadFixtures('basic/wildcards-ignore-joiners-synonyms.html');
$ctx1 = $('.basic-wildcards-ignore-joiners-synonyms div:first');
$ctx2 = $('.basic-wildcards-ignore-joiners-synonyms div:last');
new Mark($ctx1[0]).mark('Lor?m', {
'synonyms': {
'Lor?m': 'Ips?m'
},
'separateWordSearch': false,
'diacritics': true,
'ignoreJoiners': true,
'wildcards': 'enabled',
'done': function() {
new Mark($ctx2[0]).mark('Lor*m', {
'synonyms': {
'Lor*m': 'Ips*m'
},
'separateWordSearch': false,
'diacritics': true,
'ignoreJoiners': true,
'wildcards': 'enabled',
'done': done
});
}
});
});
it('should match wildcards and joiners inside of synonyms', function() {
expect($ctx1.find('mark')).toHaveLength(10);
expect($ctx2.find('mark')).toHaveLength(17);
});
});