3
3
exports [` cli should not override config with cli defaults 1` ] = `
4
4
"import React from 'react'
5
5
6
- const File = () => <svg viewBox =\\"0 0 48 1\\" version = { 1.1 } xmlnsXlink =\\"http://www.w3.org/1999/xlink\\">
6
+ const SvgFile = () => <svg viewBox =\\"0 0 48 1\\" version = { 1.1 } xmlnsXlink =\\"http://www.w3.org/1999/xlink\\">
7
7
<title>
8
8
Rectangle 5
9
9
</title>
@@ -27,64 +27,64 @@ const File = () => <svg viewBox=\\"0 0 48 1\\" version={1.1} xmlnsXlink=\\"http:
27
27
</svg>
28
28
29
29
30
- export default File
30
+ export default SvgFile
31
31
"
32
32
` ;
33
33
34
34
exports [` cli should support --prettier-config as file 1` ] = `
35
35
"import React from 'react'
36
36
37
- const File = props => (
37
+ const SvgFile = props => (
38
38
<svg width = { 48 } height = { 1 } { ... props } >
39
39
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
40
40
</svg >
41
41
)
42
42
43
- export default File
43
+ export default SvgFile
44
44
45
45
"
46
46
` ;
47
47
48
48
exports [` cli should support --prettier-config as json 1` ] = `
49
49
"import React from 'react'
50
50
51
- const File = props => (
51
+ const SvgFile = props => (
52
52
<svg width = { 48 } height = { 1 } { ... props } >
53
53
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
54
54
</svg >
55
55
)
56
56
57
- export default File
57
+ export default SvgFile
58
58
59
59
"
60
60
` ;
61
61
62
62
exports [` cli should support --svgo-config as file 1` ] = `
63
63
"import React from 'react'
64
64
65
- const File = props => (
65
+ const SvgFile = props => (
66
66
<svg width = { 48 } height = { 1 } { ... props } >
67
67
<title >Rectangle 5</title >
68
68
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
69
69
</svg >
70
70
)
71
71
72
- export default File
72
+ export default SvgFile
73
73
74
74
"
75
75
` ;
76
76
77
77
exports [` cli should support --svgo-config as json 1` ] = `
78
78
"import React from 'react'
79
79
80
- const File = props => (
80
+ const SvgFile = props => (
81
81
<svg width = { 48 } height = { 1 } { ... props } >
82
82
<title >Rectangle 5</title >
83
83
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
84
84
</svg >
85
85
)
86
86
87
- export default File
87
+ export default SvgFile
88
88
89
89
"
90
90
` ;
@@ -134,117 +134,117 @@ Array [
134
134
exports [` cli should support various args: --icon 1` ] = `
135
135
"import React from 'react'
136
136
137
- const File = props => (
137
+ const SvgFile = props => (
138
138
<svg viewBox =\\"0 0 48 1\\" width =\\"1em\\" height =\\"1em\\" { ... props } >
139
139
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
140
140
</svg >
141
141
)
142
142
143
- export default File
143
+ export default SvgFile
144
144
145
145
"
146
146
` ;
147
147
148
148
exports [` cli should support various args: --native --icon 1` ] = `
149
149
"import React from 'react'
150
150
import Svg, { Path } from 'react-native-svg'
151
- const File = props => (
151
+ const SvgFile = props => (
152
152
<Svg viewBox =\\"0 0 48 1\\" width =\\"1em\\" height =\\"1em\\" { ... props } >
153
153
<Path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
154
154
</Svg >
155
155
)
156
156
157
- export default File
157
+ export default SvgFile
158
158
159
159
"
160
160
` ;
161
161
162
162
exports [` cli should support various args: --native --no-expand-props 1` ] = `
163
163
"import React from 'react'
164
164
import Svg, { Path } from 'react-native-svg'
165
- const File = () => (
165
+ const SvgFile = () => (
166
166
<Svg width = { 48 } height = { 1 } >
167
167
<Path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
168
168
</Svg >
169
169
)
170
170
171
- export default File
171
+ export default SvgFile
172
172
173
173
"
174
174
` ;
175
175
176
176
exports [` cli should support various args: --native --ref 1` ] = `
177
177
"import React from 'react'
178
178
import Svg, { Path } from 'react-native-svg'
179
- const File = ({ svgRef , ... props } ) => (
179
+ const SvgFile = ({ svgRef , ... props } ) => (
180
180
<Svg width = { 48 } height = { 1 } ref = { svgRef } { ... props } >
181
181
<Path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
182
182
</Svg >
183
183
)
184
184
185
- export default File
185
+ export default SvgFile
186
186
187
187
"
188
188
` ;
189
189
190
190
exports [` cli should support various args: --native 1` ] = `
191
191
"import React from 'react'
192
192
import Svg, { Path } from 'react-native-svg'
193
- const File = props => (
193
+ const SvgFile = props => (
194
194
<Svg width = { 48 } height = { 1 } { ... props } >
195
195
<Path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
196
196
</Svg >
197
197
)
198
198
199
- export default File
199
+ export default SvgFile
200
200
201
201
"
202
202
` ;
203
203
204
204
exports [` cli should support various args: --no-dimensions 1` ] = `
205
205
"import React from 'react'
206
206
207
- const File = props => (
207
+ const SvgFile = props => (
208
208
<svg { ... props } >
209
209
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
210
210
</svg >
211
211
)
212
212
213
- export default File
213
+ export default SvgFile
214
214
215
215
"
216
216
` ;
217
217
218
218
exports [` cli should support various args: --no-expand-props 1` ] = `
219
219
"import React from 'react'
220
220
221
- const File = () => (
221
+ const SvgFile = () => (
222
222
<svg width = { 48 } height = { 1 } >
223
223
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
224
224
</svg >
225
225
)
226
226
227
- export default File
227
+ export default SvgFile
228
228
229
229
"
230
230
` ;
231
231
232
232
exports [` cli should support various args: --no-prettier 1` ] = `
233
233
"import React from 'react'
234
234
235
- const File = props => <svg width = { 48 } height = { 1 } { ... props } >
235
+ const SvgFile = props => <svg width = { 48 } height = { 1 } { ... props } >
236
236
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
237
237
</svg >
238
238
239
239
240
- export default File
240
+ export default SvgFile
241
241
"
242
242
` ;
243
243
244
244
exports [` cli should support various args: --no-svgo 1` ] = `
245
245
"import React from 'react'
246
246
247
- const File = props => (
247
+ const SvgFile = props => (
248
248
<svg
249
249
width =\\"48px\\"
250
250
height =\\"1px\\"
@@ -276,92 +276,92 @@ const File = props => (
276
276
</svg>
277
277
)
278
278
279
- export default File
279
+ export default SvgFile
280
280
281
281
"
282
282
` ;
283
283
284
284
exports [` cli should support various args: --ref 1` ] = `
285
285
"import React from 'react'
286
286
287
- const File = ({ svgRef , ... props } ) => (
287
+ const SvgFile = ({ svgRef , ... props } ) => (
288
288
<svg width = { 48 } height = { 1 } ref = { svgRef } { ... props } >
289
289
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
290
290
</svg >
291
291
)
292
292
293
- export default File
293
+ export default SvgFile
294
294
295
295
"
296
296
` ;
297
297
298
298
exports [` cli should support various args: --replace-attr-values "#063855=currentColor" 1` ] = `
299
299
"import React from 'react'
300
300
301
- const File = props => (
301
+ const SvgFile = props => (
302
302
<svg width = { 48 } height = { 1 } { ... props } >
303
303
<path d =\\"M0 0h48v1H0z\\" fill =\\"currentColor\\" fillRule =\\"evenodd\\" />
304
304
</svg >
305
305
)
306
306
307
- export default File
307
+ export default SvgFile
308
308
309
309
"
310
310
` ;
311
311
312
312
exports [` cli should support various args: --svg-attributes "focusable=false" 1` ] = `
313
313
"import React from 'react'
314
314
315
- const File = props => (
315
+ const SvgFile = props => (
316
316
<svg focusable =\\"false\\" width = { 48 } height = { 1 } { ... props } >
317
317
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
318
318
</svg >
319
319
)
320
320
321
- export default File
321
+ export default SvgFile
322
322
323
323
"
324
324
` ;
325
325
326
326
exports [` cli should support various args: --svg-props "hidden={ true } " 1` ] = `
327
327
"import React from 'react'
328
328
329
- const File = props => (
329
+ const SvgFile = props => (
330
330
<svg hidden = { true } width = { 48 } height = { 1 } { ... props } >
331
331
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
332
332
</svg >
333
333
)
334
334
335
- export default File
335
+ export default SvgFile
336
336
337
337
"
338
338
` ;
339
339
340
340
exports [` cli should support various args: --title-prop 1` ] = `
341
341
"import React from 'react'
342
342
343
- const File = ({ title , ... props } ) => (
343
+ const SvgFile = ({ title , ... props } ) => (
344
344
<svg width = { 48 } height = { 1 } { ... props } >
345
345
<title >{ title } </title >
346
346
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
347
347
</svg >
348
348
)
349
349
350
- export default File
350
+ export default SvgFile
351
351
352
352
"
353
353
` ;
354
354
355
355
exports [` cli should work with a simple file 1` ] = `
356
356
"import React from 'react'
357
357
358
- const File = props => (
358
+ const SvgFile = props => (
359
359
<svg width = { 48 } height = { 1 } { ... props } >
360
360
<path d =\\"M0 0h48v1H0z\\" fill =\\"#063855\\" fillRule =\\"evenodd\\" />
361
361
</svg >
362
362
)
363
363
364
- export default File
364
+ export default SvgFile
365
365
366
366
"
367
367
` ;
0 commit comments