Caleb Porzio 4 سال پیش
والد
کامیت
b425d585a8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 }) => {