chore: todos

This commit is contained in:
Evan You
2019-11-28 15:22:30 -05:00
parent 65118327ff
commit 020e109abd
2 changed files with 4 additions and 0 deletions

View File

@@ -8,11 +8,13 @@ describe('compiler:sfc', () => {
test('style block', () => {
const style = parse(`<style>\n.color {\n color: red;\n }\n</style>\n`)
.styles[0]
// TODO need to actually test this with SourceMapConsumer
expect(style.map).not.toBeUndefined()
})
test('script block', () => {
const script = parse(`<script>\nconsole.log(1)\n }\n</script>\n`).script
// TODO need to actually test this with SourceMapConsumer
expect(script!.map).not.toBeUndefined()
})
})