This commit is contained in:
NoryiE
2025-02-10 06:00:28 +00:00
parent b0a4a6da9c
commit 71a1fce096
2428 changed files with 0 additions and 1005324 deletions

View File

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