Caleb Porzio 4 år sedan
förälder
incheckning
b425d585a8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      tests/cypress/integration/directives/x-for.spec.js

+ 1 - 1
tests/cypress/integration/directives/x-for.spec.js

@@ -418,7 +418,7 @@ test('x-for works with undefined',
             <template x-for="i in items">
                 <span x-text="i"></span>
             </template>
-            <button @click="items.push(2)" id="first">click me</button>
+            <button @click="items = [2]" id="first">click me</button>
         </div>
     `,
     ({ get }) => {