@@ -13,16 +13,12 @@ describe('cli', () => {
1313 } )
1414
1515 it ( '--no-svgo' , async ( ) => {
16- const [ stdout ] = await exec (
17- 'bin/svgr --no-svgo __fixtures__/one.svg' ,
18- )
16+ const [ stdout ] = await exec ( 'bin/svgr --no-svgo __fixtures__/one.svg' )
1917 expect ( stdout ) . toMatchSnapshot ( )
2018 } )
2119
2220 it ( '--no-prettier' , async ( ) => {
23- const [ stdout ] = await exec (
24- 'bin/svgr --no-prettier __fixtures__/one.svg' ,
25- )
21+ const [ stdout ] = await exec ( 'bin/svgr --no-prettier __fixtures__/one.svg' )
2622 expect ( stdout ) . toMatchSnapshot ( )
2723 } )
2824
@@ -34,8 +30,18 @@ describe('cli', () => {
3430 } )
3531
3632 it ( '--icon' , async ( ) => {
33+ const [ stdout ] = await exec ( 'bin/svgr --icon __fixtures__/one.svg' )
34+ expect ( stdout ) . toMatchSnapshot ( )
35+ } )
36+
37+ it ( '--ref' , async ( ) => {
38+ const [ stdout ] = await exec ( 'bin/svgr --ref __fixtures__/one.svg' )
39+ expect ( stdout ) . toMatchSnapshot ( )
40+ } )
41+
42+ it ( '--ref --no-expand-props' , async ( ) => {
3743 const [ stdout ] = await exec (
38- 'bin/svgr --icon __fixtures__/one.svg' ,
44+ 'bin/svgr --ref --no-expand-props __fixtures__/one.svg' ,
3945 )
4046 expect ( stdout ) . toMatchSnapshot ( )
4147 } )
@@ -46,9 +52,7 @@ describe('cli', () => {
4652 } )
4753
4854 it ( '--no-view-box' , async ( ) => {
49- const [ stdout ] = await exec (
50- 'bin/svgr --no-view-box __fixtures__/one.svg' ,
51- )
55+ const [ stdout ] = await exec ( 'bin/svgr --no-view-box __fixtures__/one.svg' )
5256 expect ( stdout ) . toMatchSnapshot ( )
5357 } )
5458
@@ -60,23 +64,17 @@ describe('cli', () => {
6064 } )
6165
6266 it ( '--precision' , async ( ) => {
63- const [ stdout ] = await exec (
64- 'bin/svgr --precision 1 __fixtures__/one.svg' ,
65- )
67+ const [ stdout ] = await exec ( 'bin/svgr --precision 1 __fixtures__/one.svg' )
6668 expect ( stdout ) . toMatchSnapshot ( )
6769 } )
6870
6971 it ( '--no-title' , async ( ) => {
70- const [ stdout ] = await exec (
71- 'bin/svgr --no-title __fixtures__/one.svg' ,
72- )
72+ const [ stdout ] = await exec ( 'bin/svgr --no-title __fixtures__/one.svg' )
7373 expect ( stdout ) . toMatchSnapshot ( )
7474 } )
7575
7676 it ( '--no-semi' , async ( ) => {
77- const [ stdout ] = await exec (
78- 'bin/svgr --no-semi __fixtures__/one.svg' ,
79- )
77+ const [ stdout ] = await exec ( 'bin/svgr --no-semi __fixtures__/one.svg' )
8078 expect ( stdout ) . toMatchSnapshot ( )
8179 } )
8280
@@ -88,9 +86,7 @@ describe('cli', () => {
8886 } )
8987
9088 it ( '--native' , async ( ) => {
91- const [ stdout ] = await exec (
92- 'bin/svgr --native __fixtures__/one.svg' ,
93- )
89+ const [ stdout ] = await exec ( 'bin/svgr --native __fixtures__/one.svg' )
9490 expect ( stdout ) . toMatchSnapshot ( )
9591 } )
9692
0 commit comments