]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(compiler): improve readability of compiler-core's test case (#4886)
authorWangJing <24888115+jiingwang@users.noreply.github.com>
Thu, 12 May 2022 00:47:10 +0000 (08:47 +0800)
committerGitHub <noreply@github.com>
Thu, 12 May 2022 00:47:10 +0000 (20:47 -0400)
packages/compiler-core/__tests__/parse.spec.ts

index 5d5e40566365a63a9b6edab9a8bab05fa365962c..4154e306c79dfa43cf0bb317267f99af2b1a1e98 100644 (file)
@@ -1037,7 +1037,7 @@ describe('compiler: parse', () => {
             offset: 0
           }
         },
-        ns: 0,
+        ns: Namespaces.HTML,
         props: [
           {
             loc: {
@@ -1054,7 +1054,7 @@ describe('compiler: parse', () => {
               }
             },
             name: 'class',
-            type: 6,
+            type: NodeTypes.ATTRIBUTE,
             value: {
               content: 'c',
               loc: {
@@ -1070,13 +1070,13 @@ describe('compiler: parse', () => {
                   offset: 11
                 }
               },
-              type: 2
+              type: NodeTypes.TEXT
             }
           }
         ],
         tag: 'div',
-        tagType: 0,
-        type: 1
+        tagType: ElementTypes.ELEMENT,
+        type: NodeTypes.ELEMENT
       })
     })