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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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
})
})