Samuel Štancl 4 năm trước cách đây
mục cha
commit
7a27d519d5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/lifecycle.spec.js

+ 1 - 1
test/lifecycle.spec.js

@@ -106,7 +106,7 @@ test('x-init is capable of dispatching an event', async () => {
 
 test('onBeforeComponentInitialized is capable of modifying the element', async () => {
     document.body.innerHTML = `
-        <div x-data="{ init() { window.foo = 'bar' }"></div>
+        <div x-data="{ init() { window.foo = 'bar' } }"></div>
     `
     
     Alpine.onBeforeComponentInitialized(component => {