Skip to content

Commit

Permalink
Add failing tests
Browse files Browse the repository at this point in the history
See #3895
  • Loading branch information
timothykang authored and alexweissman committed Oct 26, 2017
1 parent 3d8864b commit a395ad1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/selection/multiple-tests.js
Expand Up @@ -72,10 +72,12 @@ test('empty update clears the selection', function (assert) {
var $rendered = $selection.find('.select2-selection__rendered');

$rendered.text('testing');
$rendered.attr('title', 'testing');

selection.update([]);

assert.equal($rendered.text(), '');
assert.equal($rendered.attr('title'), undefined);
});

test('escapeMarkup is being used', function (assert) {
Expand Down
2 changes: 2 additions & 0 deletions tests/selection/single-tests.js
Expand Up @@ -72,10 +72,12 @@ test('empty update clears the selection', function (assert) {
var $rendered = $selection.find('.select2-selection__rendered');

$rendered.text('testing');
$rendered.attr('title', 'testing');

selection.update([]);

assert.equal($rendered.text(), '');
assert.equal($rendered.attr('title'), undefined);
});

test('update renders the data text', function (assert) {
Expand Down

0 comments on commit a395ad1

Please sign in to comment.