Skip to content

Commit 9329feb

Browse files
authored
chore(compiler): improve readability of compiler-core's test case (#4886)
1 parent 54753c3 commit 9329feb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/compiler-core/__tests__/parse.spec.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ describe('compiler: parse', () => {
10371037
offset: 0
10381038
}
10391039
},
1040-
ns: 0,
1040+
ns: Namespaces.HTML,
10411041
props: [
10421042
{
10431043
loc: {
@@ -1054,7 +1054,7 @@ describe('compiler: parse', () => {
10541054
}
10551055
},
10561056
name: 'class',
1057-
type: 6,
1057+
type: NodeTypes.ATTRIBUTE,
10581058
value: {
10591059
content: 'c',
10601060
loc: {
@@ -1070,13 +1070,13 @@ describe('compiler: parse', () => {
10701070
offset: 11
10711071
}
10721072
},
1073-
type: 2
1073+
type: NodeTypes.TEXT
10741074
}
10751075
}
10761076
],
10771077
tag: 'div',
1078-
tagType: 0,
1079-
type: 1
1078+
tagType: ElementTypes.ELEMENT,
1079+
type: NodeTypes.ELEMENT
10801080
})
10811081
})
10821082

0 commit comments

Comments
 (0)