mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 07:30:02 +00:00
21 lines
547 B
JavaScript
21 lines
547 B
JavaScript
'use strict';
|
|
describe('basic mark with synonyms and multiple blanks', function() {
|
|
var $ctx;
|
|
beforeEach(function(done) {
|
|
loadFixtures('basic/synonyms-merge-blanks.html');
|
|
|
|
$ctx = $('.basic-synonyms-merge-blanks');
|
|
new Mark($ctx[0]).mark(['dolor', 'amet'], {
|
|
'separateWordSearch': false,
|
|
'diacritics': false,
|
|
'synonyms': {
|
|
'dolor': 'lorem ipsum'
|
|
},
|
|
'done': done
|
|
});
|
|
});
|
|
|
|
it('should find synonyms with diacritics', function() {
|
|
expect($ctx.find('mark')).toHaveLength(4);
|
|
});
|
|
});
|