Leonardo Piccioni de Almeida пре 6 година
родитељ
комит
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
     const mounted = createVNode('div')
     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
     expect(normalizeVNode('foo')).toMatchObject({ type: Text, children: `foo` })