Skip to content

Commit

Permalink
Added tests for case insensitive tag matching
Browse files Browse the repository at this point in the history
This adds a single test for cb9a904.
  • Loading branch information
kevin-brown committed Dec 29, 2016
1 parent cb9a904 commit 1167bac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/data/tags-tests.js
Expand Up @@ -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) {
var data = new SelectTags($('#qunit-fixture .single'), options);

Expand Down

0 comments on commit 1167bac

Please sign in to comment.