wip(compiler): generate blocks for v-if
This commit is contained in:
@@ -50,10 +50,6 @@ describe('compiler: integration tests', () => {
|
||||
filename: `foo.vue`
|
||||
})
|
||||
|
||||
expect(code).toMatch(
|
||||
`const { createVNode: _createVNode, toString: _toString, renderList: _renderList } = _Vue`
|
||||
)
|
||||
|
||||
expect(code).toMatchSnapshot()
|
||||
expect(map!.sources).toEqual([`foo.vue`])
|
||||
expect(map!.sourcesContent).toEqual([source])
|
||||
@@ -120,8 +116,6 @@ describe('compiler: integration tests', () => {
|
||||
prefixIdentifiers: true
|
||||
})
|
||||
|
||||
expect(code).toMatch(`const { createVNode, toString, renderList } = Vue`)
|
||||
|
||||
expect(code).toMatchSnapshot()
|
||||
expect(map!.sources).toEqual([`foo.vue`])
|
||||
expect(map!.sourcesContent).toEqual([source])
|
||||
@@ -197,10 +191,6 @@ describe('compiler: integration tests', () => {
|
||||
filename: `foo.vue`
|
||||
})
|
||||
|
||||
expect(code).toMatch(
|
||||
`import { createVNode, toString, renderList } from "vue"`
|
||||
)
|
||||
|
||||
expect(code).toMatchSnapshot()
|
||||
expect(map!.sources).toEqual([`foo.vue`])
|
||||
expect(map!.sourcesContent).toEqual([source])
|
||||
|
||||
Reference in New Issue
Block a user