diff --git a/test/unit/modules/sfc/sfc-parser.spec.js b/test/unit/modules/sfc/sfc-parser.spec.js index e98230df..92ba7662 100644 --- a/test/unit/modules/sfc/sfc-parser.spec.js +++ b/test/unit/modules/sfc/sfc-parser.spec.js @@ -13,6 +13,9 @@ describe('Single File Component parser', () => { h2 color green + @@ -21,11 +24,12 @@ describe('Single File Component parser', () => { `) expect(res.template.content.trim()).toBe('
hi
') - expect(res.styles.length).toBe(2) + expect(res.styles.length).toBe(3) expect(res.styles[0].src).toBe('./test.css') expect(res.styles[1].lang).toBe('stylus') expect(res.styles[1].scoped).toBe(true) expect(res.styles[1].content.trim()).toBe('h1\n color red\nh2\n color green') + expect(res.styles[2].module).toBe(true) expect(res.script.content.trim()).toBe('export default {}') })