Skip to content

Commit 581af39

Browse files
committed
select2#3222 test cleanup
Improving my test from feedback.
1 parent 13cead0 commit 581af39

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tests/selection/multiple-tests.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,11 @@ test('templateSelection can addClass', function (assert) {
5555
text: 'test'
5656
}, $container);
5757

58-
for (var i = 0; i < $container[0].classList.length; i += 1) {
59-
if ($container[0].classList[i] === 'testclass') {
60-
found = true;
61-
}
62-
}
63-
6458
assert.ok(called);
6559

6660
assert.equal(out, 'test');
6761

68-
assert.ok(called);
62+
assert.ok($container.hasClass('testclass'));
6963
});
7064

7165
test('empty update clears the selection', function (assert) {

0 commit comments

Comments
 (0)