浏览代码

#3222 test cleanup

Improving my test from feedback.
Stretch 10 年之前
父节点
当前提交
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) {