mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 15:40:02 +00:00
22 lines
547 B
JavaScript
22 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);
|
||
|
});
|
||
|
});
|