1
0
mirror of synced 2024-11-21 20:46:07 +03:00

Add failing tests

See #3895
This commit is contained in:
Tim Kang 2016-10-17 11:55:58 -07:00 committed by alexweissman
parent 3d8864bcfa
commit a395ad1d75
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -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) {