Added tests for case insensitive tag matching
This adds a single test for cb9a90457867ffb14c7b1550bb67e872e0a5c2dd.
This commit is contained in:
parent
cb9a904578
commit
1167bace78
@ -64,6 +64,21 @@ test('white space is trimmed by default', function (assert) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('does not create option if text is same but lowercase', function (assert) {
|
||||||
|
var data = new SelectTags($('#qunit-fixture .single'), options);
|
||||||
|
|
||||||
|
data.query({
|
||||||
|
term: 'one'
|
||||||
|
}, function (data) {
|
||||||
|
assert.equal(data.results.length, 1);
|
||||||
|
|
||||||
|
var item = data.results[0];
|
||||||
|
|
||||||
|
assert.equal(item.id, 'One');
|
||||||
|
assert.equal(item.text, 'One');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
test('does not trigger for additional pages', function (assert) {
|
test('does not trigger for additional pages', function (assert) {
|
||||||
var data = new SelectTags($('#qunit-fixture .single'), options);
|
var data = new SelectTags($('#qunit-fixture .single'), options);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user