1- import VueUiSparkstackbar from './vue-ui-sparkstackbar.vue'
1+ import VueUiSparkStackbar from './vue-ui-sparkstackbar.vue'
22
3- describe ( '<VueUiSparkstackbar />' , ( ) => {
3+ describe ( '<VueUiSparkStackbar />' , ( ) => {
44
55 beforeEach ( function ( ) {
66 cy . fixture ( 'sparkstackbar.json' ) . as ( 'fixture' ) ;
@@ -16,7 +16,7 @@ describe('<VueUiSparkstackbar />', () => {
1616
1717 it ( 'renders' , ( ) => {
1818 cy . get ( '@fixture' ) . then ( ( fixture ) => {
19- cy . mount ( VueUiSparkstackbar , {
19+ cy . mount ( VueUiSparkStackbar , {
2020 props : {
2121 dataset : fixture . dataset ,
2222 config : fixture . config
@@ -49,16 +49,16 @@ describe('<VueUiSparkstackbar />', () => {
4949
5050 updateConfigInFixture ( modifiedConfig ) ;
5151
52- cy . mount ( VueUiSparkstackbar , {
52+ cy . mount ( VueUiSparkStackbar , {
5353 props : {
5454 dataset : fixture . dataset ,
5555 config : modifiedConfig
5656 }
5757 } ) ;
5858
5959 cy . get ( `[data-cy="sparkstackbar-title-wrapper"]` )
60- . should ( 'have.css' , 'text-align' )
61- . should ( 'include' , 'center' )
60+ . should ( 'have.css' , 'text-align' )
61+ . should ( 'include' , 'center' )
6262
6363 modifiedConfig = {
6464 ...fixture . config ,
@@ -73,67 +73,67 @@ describe('<VueUiSparkstackbar />', () => {
7373
7474 updateConfigInFixture ( modifiedConfig ) ;
7575
76- cy . mount ( VueUiSparkstackbar , {
76+ cy . mount ( VueUiSparkStackbar , {
7777 props : {
7878 dataset : fixture . dataset ,
7979 config : modifiedConfig
8080 }
8181 } ) ;
8282
8383 cy . get ( `[data-cy="sparkstackbar-title-wrapper"]` )
84- . should ( 'have.css' , 'text-align' )
85- . should ( 'include' , 'left' ) ;
84+ . should ( 'have.css' , 'text-align' )
85+ . should ( 'include' , 'left' ) ;
8686
8787 cy . get ( `[data-cy="sparkstackbar-legend"]` )
8888 . should ( 'exist' )
8989 . should ( 'have.css' , 'justify-content' )
9090 . should ( 'include' , 'flex-end' ) ;
9191
92- modifiedConfig = {
93- ...fixture . config ,
94- style : {
95- ...fixture . config . style ,
96- legend : {
97- ...fixture . config . style . legend ,
98- textAlign : 'center'
99- }
92+ modifiedConfig = {
93+ ...fixture . config ,
94+ style : {
95+ ...fixture . config . style ,
96+ legend : {
97+ ...fixture . config . style . legend ,
98+ textAlign : 'center'
10099 }
101100 }
102-
103- updateConfigInFixture ( modifiedConfig ) ;
104-
105- cy . mount ( VueUiSparkstackbar , {
106- props : {
107- dataset : fixture . dataset ,
108- config : modifiedConfig
109- }
110- } ) ;
101+ }
102+
103+ updateConfigInFixture ( modifiedConfig ) ;
104+
105+ cy . mount ( VueUiSparkStackbar , {
106+ props : {
107+ dataset : fixture . dataset ,
108+ config : modifiedConfig
109+ }
110+ } ) ;
111111
112- cy . get ( `[data-cy="sparkstackbar-legend"]` )
112+ cy . get ( `[data-cy="sparkstackbar-legend"]` )
113113 . should ( 'have.css' , 'justify-content' )
114114 . should ( 'include' , 'center' ) ;
115115
116- modifiedConfig = {
117- ...fixture . config ,
118- style : {
119- ...fixture . config . style ,
120- legend : {
121- ...fixture . config . style . legend ,
122- textAlign : 'left'
123- }
116+ modifiedConfig = {
117+ ...fixture . config ,
118+ style : {
119+ ...fixture . config . style ,
120+ legend : {
121+ ...fixture . config . style . legend ,
122+ textAlign : 'left'
124123 }
125124 }
126-
127- updateConfigInFixture ( modifiedConfig ) ;
128-
129- cy . mount ( VueUiSparkstackbar , {
130- props : {
131- dataset : fixture . dataset ,
132- config : modifiedConfig
133- }
134- } ) ;
125+ }
135126
136- cy . get ( `[data-cy="sparkstackbar-legend"]` )
127+ updateConfigInFixture ( modifiedConfig ) ;
128+
129+ cy . mount ( VueUiSparkStackbar , {
130+ props : {
131+ dataset : fixture . dataset ,
132+ config : modifiedConfig
133+ }
134+ } ) ;
135+
136+ cy . get ( `[data-cy="sparkstackbar-legend"]` )
137137 . should ( 'have.css' , 'justify-content' )
138138 . should ( 'include' , 'flex-start' ) ;
139139 } ) ;
0 commit comments