Leonardo Piccioni de Almeida 6 лет назад
Родитель
Сommit
a371b2ec0e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/runtime-core/__tests__/vnode.spec.ts

+ 3 - 3
packages/runtime-core/__tests__/vnode.spec.ts

@@ -130,9 +130,9 @@ describe('vnode', () => {
     // mounted VNode -> cloned VNode
     // mounted VNode -> cloned VNode
     const mounted = createVNode('div')
     const mounted = createVNode('div')
     mounted.el = {}
     mounted.el = {}
-    const normlaized = normalizeVNode(mounted)
-    expect(normlaized).not.toBe(mounted)
-    expect(normlaized).toEqual({ ...mounted, el: null })
+    const normalized = normalizeVNode(mounted)
+    expect(normalized).not.toBe(mounted)
+    expect(normalized).toEqual({ ...mounted, el: null })
 
 
     // primitive types
     // primitive types
     expect(normalizeVNode('foo')).toMatchObject({ type: Text, children: `foo` })
     expect(normalizeVNode('foo')).toMatchObject({ type: Text, children: `foo` })