Skip to content

Commit b1ef7cf

Browse files
committed
coverage for sfc-parser
1 parent f8daf74 commit b1ef7cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/modules/compiler/sfc-parser.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ describe('SFC parser', () => {
1616
<script>
1717
export default {}
1818
</script>
19+
<div>
20+
<style>nested should be ignored</style>
21+
</div>
1922
`)
2023
expect(res.template.content.trim()).toBe('<div>hi</div>')
2124
expect(res.styles.length).toBe(2)

0 commit comments

Comments
 (0)