Просмотр исходного кода

#3222 test cleanup

Improving my test from feedback.
Stretch 10 лет назад
Родитель
Сommit
581af39288
1 измененных файлов с 1 добавлено и 7 удалено
  1. 1 7
      tests/selection/multiple-tests.js

+ 1 - 7
tests/selection/multiple-tests.js

@@ -55,17 +55,11 @@ test('templateSelection can addClass', function (assert) {
     text: 'test'
   }, $container);
 
-  for (var i = 0; i < $container[0].classList.length; i += 1) {
-    if ($container[0].classList[i] === 'testclass') {
-      found = true;
-    }
-  }
-  
   assert.ok(called);
 
   assert.equal(out, 'test');
   
-  assert.ok(called);
+  assert.ok($container.hasClass('testclass'));
 });
 
 test('empty update clears the selection', function (assert) {