chore(compiler): improve readability of compiler-core's test case (#4886)

This commit is contained in:
WangJing
2022-05-12 08:47:10 +08:00
committed by GitHub
parent 54753c3401
commit 9329feb7d3

View File

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