Skip to content

Commit 1167bac

Browse files
committed
Added tests for case insensitive tag matching
This adds a single test for cb9a904.
1 parent cb9a904 commit 1167bac

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/data/tags-tests.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,21 @@ test('white space is trimmed by default', function (assert) {
6464
});
6565
});
6666

67+
test('does not create option if text is same but lowercase', function (assert) {
68+
var data = new SelectTags($('#qunit-fixture .single'), options);
69+
70+
data.query({
71+
term: 'one'
72+
}, function (data) {
73+
assert.equal(data.results.length, 1);
74+
75+
var item = data.results[0];
76+
77+
assert.equal(item.id, 'One');
78+
assert.equal(item.text, 'One');
79+
});
80+
});
81+
6782
test('does not trigger for additional pages', function (assert) {
6883
var data = new SelectTags($('#qunit-fixture .single'), options);
6984

0 commit comments

Comments
 (0)