daiwei 1 год назад
Родитель
Сommit
307f7578a7

+ 1 - 1
packages-private/vapor-e2e-test/__tests__/vdomInterop.spec.ts

@@ -96,7 +96,7 @@ describe('vdom / vapor interop', () => {
         expect(await html(testContainer)).toBe('<span>loading...</span>')
         expect(await html(testContainer)).toBe('<span>loading...</span>')
 
 
         await timeout(duration)
         await timeout(duration)
-        expect(await html(testContainer)).toBe('<div> foo </div>')
+        expect(await html(testContainer)).toBe('<div>foo</div>')
       },
       },
       E2E_TIMEOUT,
       E2E_TIMEOUT,
     )
     )

+ 1 - 1
packages-private/vapor-e2e-test/interop/App.vue

@@ -6,7 +6,7 @@ import VdomFoo from './components/VdomFoo.vue'
 const msg = ref('hello')
 const msg = ref('hello')
 const passSlot = ref(true)
 const passSlot = ref(true)
 
 
-const duration = typeof process !== undefined && process.env.CI ? 200 : 50
+const duration = typeof process !== 'undefined' && process.env.CI ? 200 : 50
 
 
 const AsyncVDomFoo = defineVaporAsyncComponent({
 const AsyncVDomFoo = defineVaporAsyncComponent({
   loader: () => {
   loader: () => {