Samuel Štancl 4 lat temu
rodzic
commit
7a27d519d5
1 zmienionych plików z 1 dodań i 1 usunięć
  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 => {