Browse Source

Fix tests

Caleb Porzio 5 năm trước cách đây
mục cha
commit
a5c1745680
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'),
         ] }