瀏覽代碼

Fix tests

Caleb Porzio 5 年之前
父節點
當前提交
a5c1745680
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/constructor.spec.js

+ 1 - 1
test/constructor.spec.js

@@ -69,7 +69,7 @@ test('auto-initialize new elements added to a component', async () => {
     `
 
     runObservers[0]([
-        { addedNodes: [
+        { target: document.querySelector('#target'), addedNodes: [
             document.querySelector('#target span'),
             document.querySelector('#target button'),
         ] }