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,32 @@
'use strict';
describe('basic mark with ignoreJoiners and special characters', function() {
var err, $ctx;
beforeEach(function(done) {
loadFixtures('basic/ignore-joiners-escape.html');
$ctx = $('.basic-ignore-joiners-escape');
err = false;
try {
new Mark($ctx.get()).mark([
'Lorem ipsum+',
'sit*',
'amet?',
'$50',
'{no}',
'www.happy.com\\'
], {
'separateWordSearch': false,
'ignoreJoiners': true,
'done': done
});
} catch (e) {
err = true;
done();
}
});
it('should find matches', function() {
expect(err).toBe(false);
expect($ctx.find('mark')).toHaveLength(9);
});
});