1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
- exports [` convert config should support options { " dimensions" :false } 1` ] = `
3
+ exports [` convert config accepts options { " dimensions" :false } 1` ] = `
4
4
"import * as React from 'react'
5
5
6
6
const SvgComponent = (props) => (
@@ -21,7 +21,7 @@ export default SvgComponent
21
21
"
22
22
` ;
23
23
24
- exports [` convert config should support options { " expandProps" :" start" } 1` ] = `
24
+ exports [` convert config accepts options { " expandProps" :" start" } 1` ] = `
25
25
"import * as React from 'react'
26
26
27
27
const SvgComponent = (props) => (
@@ -42,7 +42,7 @@ export default SvgComponent
42
42
"
43
43
` ;
44
44
45
- exports [` convert config should support options { " expandProps" :false } 1` ] = `
45
+ exports [` convert config accepts options { " expandProps" :false } 1` ] = `
46
46
"import * as React from 'react'
47
47
48
48
const SvgComponent = () => (
@@ -63,7 +63,7 @@ export default SvgComponent
63
63
"
64
64
` ;
65
65
66
- exports [` convert config should support options { " exportType" :" named" } 1` ] = `
66
+ exports [` convert config accepts options { " exportType" :" named" } 1` ] = `
67
67
"import * as React from 'react'
68
68
69
69
const SvgComponent = (props) => (
@@ -84,7 +84,61 @@ export { SvgComponent as ReactComponent }
84
84
"
85
85
` ;
86
86
87
- exports [` convert config should support options { " icon" :true } 1` ] = `
87
+ exports [` convert config accepts options { " icon" :" 2em" } 1` ] = `
88
+ "import * as React from 'react'
89
+
90
+ const SvgComponent = (props) => (
91
+ <svg
92
+ width =\\"2em\\"
93
+ height =\\"2em\\"
94
+ viewBox =\\"0 0 88 88\\"
95
+ xmlns =\\"http://www.w3.org/2000/svg\\"
96
+ { ... props }
97
+ >
98
+ <g
99
+ stroke =\\"#063855\\"
100
+ strokeWidth = { 2 }
101
+ fill =\\"none\\"
102
+ fillRule =\\"evenodd\\"
103
+ strokeLinecap =\\"square\\"
104
+ >
105
+ <path d =\\"M51 37 37 51M51 51 37 37\\" />
106
+ </g >
107
+ </svg >
108
+ )
109
+
110
+ export default SvgComponent
111
+ "
112
+ ` ;
113
+
114
+ exports [` convert config accepts options { " icon" :24 } 1` ] = `
115
+ "import * as React from 'react'
116
+
117
+ const SvgComponent = (props) => (
118
+ <svg
119
+ width = { 24 }
120
+ height = { 24 }
121
+ viewBox =\\"0 0 88 88\\"
122
+ xmlns =\\"http://www.w3.org/2000/svg\\"
123
+ { ... props }
124
+ >
125
+ <g
126
+ stroke =\\"#063855\\"
127
+ strokeWidth = { 2 }
128
+ fill =\\"none\\"
129
+ fillRule =\\"evenodd\\"
130
+ strokeLinecap =\\"square\\"
131
+ >
132
+ <path d =\\"M51 37 37 51M51 51 37 37\\" />
133
+ </g >
134
+ </svg >
135
+ )
136
+
137
+ export default SvgComponent
138
+ "
139
+ ` ;
140
+
141
+ exports [` convert config accepts options { " icon" :true } 1` ] = `
88
142
"import * as React from 'react'
89
143
90
144
const SvgComponent = (props) => (
@@ -111,7 +165,7 @@ export default SvgComponent
111
165
"
112
166
` ;
113
167
114
- exports [` convert config should support options { " memo" :true } 1` ] = `
168
+ exports [` convert config accepts options { " memo" :true } 1` ] = `
115
169
"import * as React from 'react'
116
170
import { memo } from 'react'
117
171
@@ -134,7 +188,7 @@ export default Memo
134
188
"
135
189
` ;
136
190
137
- exports [` convert config should support options { " namedExport" :" Component" ," state" :{" caller" :{" previousExport" :" export default \\ " logo .svg \\" ;" }}} 1` ] = `
191
+ exports [` convert config accepts options { " namedExport" :" Component" ," state" :{" caller" :{" previousExport" :" export default \\ " logo .svg \\" ;" }}} 1` ] = `
138
192
"import * as React from 'react'
139
193
140
194
const SvgComponent = (props) => (
@@ -155,7 +209,7 @@ export default SvgComponent
155
209
"
156
210
` ;
157
211
158
- exports [` convert config should support options { " native" :true ," expandProps" :false } 1` ] = `
212
+ exports [` convert config accepts options { " native" :true ," expandProps" :false } 1` ] = `
159
213
"import * as React from 'react'
160
214
import Svg, { G , Path } from 'react-native-svg'
161
215
@@ -177,14 +231,14 @@ export default SvgComponent
177
231
"
178
232
` ;
179
233
180
- exports [` convert config should support options { " native" :true ," icon" :true } 1` ] = `
234
+ exports [` convert config accepts options { " native" :true ," icon" :true } 1` ] = `
181
235
"import * as React from 'react'
182
236
import Svg, { G , Path } from 'react-native-svg'
183
237
184
238
const SvgComponent = (props) => (
185
239
<Svg
186
- width =\\"1em\\"
187
- height =\\"1em\\"
240
+ width = { 24 }
241
+ height = { 24 }
188
242
viewBox =\\"0 0 88 88\\"
189
243
xmlns =\\"http://www.w3.org/2000/svg\\"
190
244
{ ... props }
@@ -205,7 +259,7 @@ export default SvgComponent
205
259
"
206
260
` ;
207
261
208
- exports [` convert config should support options { " native" :true ," ref" :true } 1` ] = `
262
+ exports [` convert config accepts options { " native" :true ," ref" :true } 1` ] = `
209
263
"import * as React from 'react'
210
264
import Svg, { G , Path } from 'react-native-svg'
211
265
import { forwardRef } from 'react'
@@ -235,7 +289,7 @@ export default ForwardRef
235
289
"
236
290
` ;
237
291
238
- exports [` convert config should support options { " native" :true } 1` ] = `
292
+ exports [` convert config accepts options { " native" :true } 1` ] = `
239
293
"import * as React from 'react'
240
294
import Svg, { G , Path } from 'react-native-svg'
241
295
@@ -257,15 +311,15 @@ export default SvgComponent
257
311
"
258
312
` ;
259
313
260
- exports [` convert config should support options { " prettier" :false } 1` ] = `
314
+ exports [` convert config accepts options { " prettier" :false } 1` ] = `
261
315
"import * as React from \\ "react\\ ";
262
316
263
317
const SvgComponent = props => <svg width = { 88 } height = { 88 } xmlns =\\"http://www.w3.org/2000/svg\\" { ... props } ><g stroke =\\"#063855\\" strokeWidth = { 2 } fill =\\"none\\" fillRule =\\"evenodd\\" strokeLinecap =\\"square\\"><path d =\\"M51 37 37 51M51 51 37 37\\" /></g ></svg>;
264
318
265
319
export default SvgComponent;"
266
320
` ;
267
321
268
- exports [` convert config should support options { " ref" :true } 1` ] = `
322
+ exports [` convert config accepts options { " ref" :true } 1` ] = `
269
323
"import * as React from 'react'
270
324
import { forwardRef } from 'react'
271
325
@@ -294,7 +348,7 @@ export default ForwardRef
294
348
"
295
349
` ;
296
350
297
- exports [` convert config should support options { " replaceAttrValues" :{" none" :" {black}" }} 1` ] = `
351
+ exports [` convert config accepts options { " replaceAttrValues" :{" none" :" {black}" }} 1` ] = `
298
352
"import * as React from 'react'
299
353
300
354
const SvgComponent = (props) => (
@@ -315,7 +369,7 @@ export default SvgComponent
315
369
"
316
370
` ;
317
371
318
- exports [` convert config should support options { " replaceAttrValues" :{" none" :" black" }} 1` ] = `
372
+ exports [` convert config accepts options { " replaceAttrValues" :{" none" :" black" }} 1` ] = `
319
373
"import * as React from 'react'
320
374
321
375
const SvgComponent = (props) => (
@@ -336,7 +390,7 @@ export default SvgComponent
336
390
"
337
391
` ;
338
392
339
- exports [` convert config should support options { " svgProps" :{" a" :" b" ," b" :" {props.b}" }} 1` ] = `
393
+ exports [` convert config accepts options { " svgProps" :{" a" :" b" ," b" :" {props.b}" }} 1` ] = `
340
394
"import * as React from 'react'
341
395
342
396
const SvgComponent = (props) => (
@@ -364,7 +418,7 @@ export default SvgComponent
364
418
"
365
419
` ;
366
420
367
- exports [` convert config should support options { " svgo" :false } 1` ] = `
421
+ exports [` convert config accepts options { " svgo" :false } 1` ] = `
368
422
"import * as React from 'react'
369
423
370
424
const SvgComponent = (props) => (
@@ -399,7 +453,7 @@ export default SvgComponent
399
453
"
400
454
` ;
401
455
402
- exports [` convert config should support options { " titleProp" :true } 1` ] = `
456
+ exports [` convert config accepts options { " titleProp" :true } 1` ] = `
403
457
"import * as React from 'react'
404
458
405
459
const SvgComponent = ({ title , titleId , ... props } ) => (
@@ -427,7 +481,7 @@ export default SvgComponent
427
481
"
428
482
` ;
429
483
430
- exports [` convert config should support options { } 1` ] = `
484
+ exports [` convert config accepts options { } 1` ] = `
431
485
"const noop = () => null
432
486
433
487
export default noop
0 commit comments