Skip to content

Commit f712f9d

Browse files
committed
another test for alternative text search
1 parent 205c3b6 commit f712f9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/basic.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ describe('basic suite', function() {
119119
expect($('.selectric-items').find('.highlighted').length).toBe(0);
120120
});
121121

122+
it('should skip blank alternative text with separator', function () {
123+
select.find('option:eq(6)').attr('data-alt', '|');
124+
select.selectric('refresh');
125+
$('.selectric-input').val('a text that does not exist').trigger('input');
126+
expect($('.selectric-items').find('.highlighted').length).toBe(0);
127+
});
128+
122129
it('highlight() should return undefined if index is undefined', function () {
123130
expect(select.data('selectric').highlight(undefined)).toBe(undefined);
124131
});

0 commit comments

Comments
 (0)