Samuel Štancl před 4 roky
rodič
revize
7a27d519d5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 => {