Files
docs/node_modules/mark.js/test/specs/basic/no-options.js
yinxue 9e1b8bdc9d
Some checks failed
CI Pipeline / build (push) Failing after 3m23s
first-commit
2025-08-27 14:05:33 +08:00

23 lines
498 B
JavaScript

'use strict';
describe('basic mark with no options', function() {
var $ctx, err;
beforeEach(function() {
loadFixtures('basic/no-options.html');
$ctx = $('.basic-no-options');
err = false;
try {
new Mark($ctx[0]).mark('lorem ipsum');
} catch (e){
err = true;
}
});
it('should not throw an error', function() {
expect(err).toBe(false);
});
it('should wrap matches', function() {
expect($ctx.find('mark').length).toBeGreaterThan(0);
});
});