From 9329feb7d331074f50aef090fdb41f44fbab44a5 Mon Sep 17 00:00:00 2001 From: WangJing <24888115+jiingwang@users.noreply.github.com> Date: Thu, 12 May 2022 08:47:10 +0800 Subject: [PATCH] chore(compiler): improve readability of compiler-core's test case (#4886) --- packages/compiler-core/__tests__/parse.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/compiler-core/__tests__/parse.spec.ts b/packages/compiler-core/__tests__/parse.spec.ts index 5d5e4056..4154e306 100644 --- a/packages/compiler-core/__tests__/parse.spec.ts +++ b/packages/compiler-core/__tests__/parse.spec.ts @@ -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 }) })