소스 검색

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