Browse Source

coverage for sfc-parser

Evan You 10 years ago
parent
commit
b1ef7cf168
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/unit/modules/compiler/sfc-parser.spec.js

+ 3 - 0
test/unit/modules/compiler/sfc-parser.spec.js

@@ -16,6 +16,9 @@ describe('SFC parser', () => {
       <script>
         export default {}
       </script>
+      <div>
+        <style>nested should be ignored</style>
+      </div>
     `)
     expect(res.template.content.trim()).toBe('<div>hi</div>')
     expect(res.styles.length).toBe(2)