1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` scopeId compiler support should push scopeId for hoisted nodes 1` ] = `
4
- "import { createVNode , createBlock , openBlock , withScopeId , pushScopeId , popScopeId } from \\ "vue\\ "
5
- const withId = withScopeId (\\ "test\\ ")
4
+ "import { createVNode as _createVNode , createBlock as _createBlock , openBlock as _openBlock , withScopeId as _withScopeId , pushScopeId as _pushScopeId , popScopeId as _popScopeId } from \\ "vue\\ "
5
+ const _withId = _withScopeId (\\ "test\\ ")
6
6
7
- pushScopeId (\\ "test\\ ")
8
- const _hoisted_1 = createVNode (\\ "div\\ ", null, \\ "hello\\ ")
9
- const _hoisted_2 = createVNode (\\ "div\\ ", null, \\ "world\\ ")
10
- popScopeId ()
7
+ _pushScopeId (\\ "test\\ ")
8
+ const _hoisted_1 = _createVNode (\\ "div\\ ", null, \\ "hello\\ ")
9
+ const _hoisted_2 = _createVNode (\\ "div\\ ", null, \\ "world\\ ")
10
+ _popScopeId ()
11
11
12
- export const render = withId (function render() {
12
+ export const render = _withId (function render() {
13
13
const _ctx = this
14
- return (openBlock (), createBlock (\\" div\\ " , null , [
14
+ return (_openBlock (), _createBlock (\\" div\\ " , null , [
15
15
_hoisted_1 ,
16
16
_hoisted_2
17
17
]))
18
18
} )"
19
19
` ;
20
20
21
21
exports [` scopeId compiler support should wrap default slot 1` ] = `
22
- "import { createVNode , resolveComponent , createBlock , openBlock , withScopeId } from \\ "vue\\ "
23
- const withId = withScopeId (\\ "test\\ ")
22
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent , createBlock as _createBlock , openBlock as _openBlock , withScopeId as _withScopeId } from \\ "vue\\ "
23
+ const _withId = _withScopeId (\\ "test\\ ")
24
24
25
- export const render = withId (function render() {
25
+ export const render = _withId (function render() {
26
26
const _ctx = this
27
- const _component_Child = resolveComponent (\\" Child\\ " )
27
+ const _component_Child = _resolveComponent (\\" Child\\ " )
28
28
29
- return (openBlock (), createBlock (_component_Child , null , {
30
- default: withId (() => [
31
- createVNode (\\" div\\ " )
29
+ return (_openBlock (), _createBlock (_component_Child , null , {
30
+ default: _withId (() => [
31
+ _createVNode (\\" div\\ " )
32
32
]),
33
33
_compiled: true
34
34
}))
35
35
} )"
36
36
` ;
37
37
38
38
exports [` scopeId compiler support should wrap dynamic slots 1` ] = `
39
- "import { createVNode , resolveComponent , renderList , createSlots , createBlock , openBlock , withScopeId } from \\ "vue\\ "
40
- const withId = withScopeId (\\ "test\\ ")
39
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent , renderList as _renderList , createSlots as _createSlots , createBlock as _createBlock , openBlock as _openBlock , withScopeId as _withScopeId } from \\ "vue\\ "
40
+ const _withId = _withScopeId (\\ "test\\ ")
41
41
42
- export const render = withId (function render() {
42
+ export const render = _withId (function render() {
43
43
const _ctx = this
44
- const _component_Child = resolveComponent (\\" Child\\ " )
44
+ const _component_Child = _resolveComponent (\\" Child\\ " )
45
45
46
- return (openBlock (), createBlock (_component_Child , null , createSlots ({ _compiled: true }, [
46
+ return (_openBlock (), _createBlock (_component_Child , null , _createSlots ({ _compiled: true }, [
47
47
(_ctx .ok )
48
48
? {
49
49
name: \\" foo\\ " ,
50
- fn: withId (() => [
51
- createVNode (\\" div\\ " )
50
+ fn: _withId (() => [
51
+ _createVNode (\\" div\\ " )
52
52
])
53
53
}
54
54
: undefined ,
55
- renderList (_ctx .list , (i ) => {
55
+ _renderList (_ctx .list , (i ) => {
56
56
return {
57
57
name: i ,
58
- fn: withId (() => [
59
- createVNode (\\" div\\ " )
58
+ fn: _withId (() => [
59
+ _createVNode (\\" div\\ " )
60
60
])
61
61
}
62
62
})
@@ -65,31 +65,31 @@ export const render = withId(function render() {
65
65
` ;
66
66
67
67
exports [` scopeId compiler support should wrap named slots 1` ] = `
68
- "import { toDisplayString , createTextVNode , createVNode , resolveComponent , createBlock , openBlock , withScopeId } from \\ "vue\\ "
69
- const withId = withScopeId (\\ "test\\ ")
68
+ "import { toDisplayString as _toDisplayString , createTextVNode as _createTextVNode , createVNode as _createVNode , resolveComponent as _resolveComponent , createBlock as _createBlock , openBlock as _openBlock , withScopeId as _withScopeId } from \\ "vue\\ "
69
+ const _withId = _withScopeId (\\ "test\\ ")
70
70
71
- export const render = withId (function render() {
71
+ export const render = _withId (function render() {
72
72
const _ctx = this
73
- const _component_Child = resolveComponent (\\" Child\\ " )
73
+ const _component_Child = _resolveComponent (\\" Child\\ " )
74
74
75
- return (openBlock (), createBlock (_component_Child , null , {
76
- foo: withId (({ msg }) => [
77
- createTextVNode ( toDisplayString (msg ), 1 /* TEXT */ )
75
+ return (_openBlock (), _createBlock (_component_Child , null , {
76
+ foo: _withId (({ msg }) => [
77
+ _createTextVNode ( _toDisplayString (msg ), 1 /* TEXT */ )
78
78
]),
79
- bar: withId (() => [
80
- createVNode (\\" div\\ " )
79
+ bar: _withId (() => [
80
+ _createVNode (\\" div\\ " )
81
81
]),
82
82
_compiled: true
83
83
}))
84
84
} )"
85
85
` ;
86
86
87
87
exports [` scopeId compiler support should wrap render function 1` ] = `
88
- "import { createVNode , createBlock , openBlock , withScopeId } from \\ "vue\\ "
89
- const withId = withScopeId (\\ "test\\ ")
88
+ "import { createVNode as _createVNode , createBlock as _createBlock , openBlock as _openBlock , withScopeId as _withScopeId } from \\ "vue\\ "
89
+ const _withId = _withScopeId (\\ "test\\ ")
90
90
91
- export const render = withId (function render() {
91
+ export const render = _withId (function render() {
92
92
const _ctx = this
93
- return (openBlock (), createBlock (\\" div\\ " ))
93
+ return (_openBlock (), _createBlock (\\" div\\ " ))
94
94
} )"
95
95
` ;
0 commit comments