Skip to content

Commit f503167

Browse files
committed
test: fix snapshots
1 parent 04da2a8 commit f503167

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

packages/compiler-core/__tests__/transforms/__snapshots__/hoistStatic.spec.ts.snap

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`compiler: hoistStatic transform hoist element with static key 1`] = `
44
"const _Vue = Vue
5-
const { createVNode: _createVNode } = Vue
5+
const { createVNode: _createVNode } = _Vue
66
77
const _hoisted_1 = _createVNode(\\"div\\", { key: \\"foo\\" })
88
@@ -19,7 +19,7 @@ return function render() {
1919

2020
exports[`compiler: hoistStatic transform hoist nested static tree 1`] = `
2121
"const _Vue = Vue
22-
const { createVNode: _createVNode } = Vue
22+
const { createVNode: _createVNode } = _Vue
2323
2424
const _hoisted_1 = _createVNode(\\"p\\", null, [
2525
_createVNode(\\"span\\"),
@@ -39,7 +39,7 @@ return function render() {
3939

4040
exports[`compiler: hoistStatic transform hoist nested static tree with comments 1`] = `
4141
"const _Vue = Vue
42-
const { createVNode: _createVNode, createCommentVNode: _createCommentVNode } = Vue
42+
const { createVNode: _createVNode, createCommentVNode: _createCommentVNode } = _Vue
4343
4444
const _hoisted_1 = _createVNode(\\"div\\", null, [
4545
_createCommentVNode(\\"comment\\")
@@ -58,7 +58,7 @@ return function render() {
5858

5959
exports[`compiler: hoistStatic transform hoist siblings with common non-hoistable parent 1`] = `
6060
"const _Vue = Vue
61-
const { createVNode: _createVNode } = Vue
61+
const { createVNode: _createVNode } = _Vue
6262
6363
const _hoisted_1 = _createVNode(\\"span\\")
6464
const _hoisted_2 = _createVNode(\\"div\\")
@@ -77,7 +77,7 @@ return function render() {
7777

7878
exports[`compiler: hoistStatic transform hoist simple element 1`] = `
7979
"const _Vue = Vue
80-
const { createVNode: _createVNode } = Vue
80+
const { createVNode: _createVNode } = _Vue
8181
8282
const _hoisted_1 = _createVNode(\\"span\\", { class: \\"inline\\" }, \\"hello\\")
8383
@@ -94,7 +94,7 @@ return function render() {
9494
9595
exports[`compiler: hoistStatic transform hoist static props for elements with directives 1`] = `
9696
"const _Vue = Vue
97-
const { createVNode: _createVNode } = Vue
97+
const { createVNode: _createVNode } = _Vue
9898
9999
const _hoisted_1 = { id: \\"foo\\" }
100100
@@ -115,7 +115,7 @@ return function render() {
115115
116116
exports[`compiler: hoistStatic transform hoist static props for elements with dynamic text children 1`] = `
117117
"const _Vue = Vue
118-
const { createVNode: _createVNode } = Vue
118+
const { createVNode: _createVNode } = _Vue
119119
120120
const _hoisted_1 = { id: \\"foo\\" }
121121
@@ -132,7 +132,7 @@ return function render() {
132132
133133
exports[`compiler: hoistStatic transform hoist static props for elements with unhoistable children 1`] = `
134134
"const _Vue = Vue
135-
const { createVNode: _createVNode } = Vue
135+
const { createVNode: _createVNode } = _Vue
136136
137137
const _hoisted_1 = { id: \\"foo\\" }
138138
@@ -153,7 +153,7 @@ return function render() {
153153
154154
exports[`compiler: hoistStatic transform prefixIdentifiers hoist class with static object value 1`] = `
155155
"const _Vue = Vue
156-
const { createVNode: _createVNode } = Vue
156+
const { createVNode: _createVNode } = _Vue
157157
158158
const _hoisted_1 = { class: { foo: true } }
159159
@@ -170,7 +170,7 @@ return function render() {
170170
171171
exports[`compiler: hoistStatic transform prefixIdentifiers hoist nested static tree with static interpolation 1`] = `
172172
"const _Vue = Vue
173-
const { createVNode: _createVNode } = Vue
173+
const { createVNode: _createVNode } = _Vue
174174
175175
const _hoisted_1 = _createVNode(\\"span\\", null, [
176176
\\"foo \\",
@@ -192,7 +192,7 @@ return function render() {
192192
193193
exports[`compiler: hoistStatic transform prefixIdentifiers hoist nested static tree with static prop value 1`] = `
194194
"const _Vue = Vue
195-
const { createVNode: _createVNode } = Vue
195+
const { createVNode: _createVNode } = _Vue
196196
197197
const _hoisted_1 = _createVNode(\\"span\\", { foo: 0 }, _toDisplayString(1))
198198
@@ -348,7 +348,7 @@ return function render() {
348348
349349
exports[`compiler: hoistStatic transform should hoist v-for children if static 1`] = `
350350
"const _Vue = Vue
351-
const { createVNode: _createVNode } = Vue
351+
const { createVNode: _createVNode } = _Vue
352352
353353
const _hoisted_1 = { id: \\"foo\\" }
354354
const _hoisted_2 = _createVNode(\\"span\\")
@@ -370,7 +370,7 @@ return function render() {
370370
371371
exports[`compiler: hoistStatic transform should hoist v-if props/children if static 1`] = `
372372
"const _Vue = Vue
373-
const { createVNode: _createVNode, createCommentVNode: _createCommentVNode } = Vue
373+
const { createVNode: _createVNode, createCommentVNode: _createCommentVNode } = _Vue
374374
375375
const _hoisted_1 = {
376376
key: 0,

packages/compiler-dom/__tests__/__snapshots__/index.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`compile should contain standard transforms 1`] = `
44
"const _Vue = Vue
5-
const { createVNode: _createVNode } = Vue
5+
const { createVNode: _createVNode } = _Vue
66
77
const _hoisted_1 = {}
88

0 commit comments

Comments
 (0)