@@ -54,13 +54,13 @@ suite('vuex tab', () => {
54
54
. should ( 'not.have.class' , 'active' )
55
55
cy . get ( '.recording-vuex-state' ) . should ( 'not.be.visible' )
56
56
cy . get ( '.loading-vuex-state' ) . should ( 'not.be.visible' )
57
- cy . get ( '.vuex-state-inspector' ) . then ( el => {
57
+ cy . get ( '.vuex-state-inspector' ) . then ( ( el ) => {
58
58
expect ( el . text ( ) ) . to . include ( 'type:"INCREMENT"' )
59
59
expect ( el . text ( ) ) . to . include ( 'count:2' )
60
60
expect ( el . text ( ) ) . to . include ( 'Error from getter' )
61
61
} )
62
62
cy . get ( '.data-field .key' ) . contains ( 'lastCountPayload' ) . click ( )
63
- cy . get ( '.vuex-state-inspector' ) . then ( el => {
63
+ cy . get ( '.vuex-state-inspector' ) . then ( ( el ) => {
64
64
expect ( el . text ( ) ) . to . include ( 'a:1' )
65
65
expect ( el . text ( ) ) . to . include ( 'b:Object' )
66
66
} )
@@ -88,7 +88,7 @@ suite('vuex tab', () => {
88
88
cy . get ( '.recording-vuex-state' ) . should ( 'not.be.visible' )
89
89
cy . get ( '.loading-vuex-state' ) . should ( 'not.be.visible' )
90
90
cy . get ( '.recording-vuex-state' ) . should ( 'not.be.visible' )
91
- cy . get ( '.vuex-state-inspector' ) . then ( el => {
91
+ cy . get ( '.vuex-state-inspector' ) . then ( ( el ) => {
92
92
expect ( el . text ( ) ) . to . include ( 'type:"INCREMENT"' )
93
93
expect ( el . text ( ) ) . to . include ( 'count:1' )
94
94
} )
@@ -111,7 +111,7 @@ suite('vuex tab', () => {
111
111
cy . get ( '.history .entry[data-index="0"]' )
112
112
. should ( 'have.class' , 'inspected' )
113
113
. should ( 'not.have.class' , 'active' )
114
- cy . get ( '.vuex-state-inspector' ) . then ( el => {
114
+ cy . get ( '.vuex-state-inspector' ) . then ( ( el ) => {
115
115
expect ( el . text ( ) ) . to . include ( 'count:0' )
116
116
} )
117
117
cy . get ( '#target' ) . iframe ( ) . then ( ( { get } ) => {
@@ -133,7 +133,7 @@ suite('vuex tab', () => {
133
133
cy . get ( '.history .entry[data-index="4"]' )
134
134
. should ( 'have.class' , 'inspected' )
135
135
. should ( 'have.class' , 'active' )
136
- cy . get ( '.vuex-state-inspector' ) . then ( el => {
136
+ cy . get ( '.vuex-state-inspector' ) . then ( ( el ) => {
137
137
expect ( el . text ( ) ) . to . include ( 'count:2' )
138
138
} )
139
139
cy . get ( '#target' ) . iframe ( ) . then ( ( { get } ) => {
@@ -147,7 +147,7 @@ suite('vuex tab', () => {
147
147
cy . get ( '.history .entry[data-index="0"]' )
148
148
. should ( 'have.class' , 'inspected' )
149
149
. should ( 'have.class' , 'active' )
150
- cy . get ( '.vuex-state-inspector' ) . then ( el => {
150
+ cy . get ( '.vuex-state-inspector' ) . then ( ( el ) => {
151
151
expect ( el . text ( ) ) . to . include ( 'count:2' )
152
152
} )
153
153
cy . get ( '#target' ) . iframe ( ) . then ( ( { get } ) => {
@@ -204,9 +204,9 @@ suite('vuex tab', () => {
204
204
cy . wait ( 500 )
205
205
cy . get ( '.message.invalid-json' ) . should ( 'not.be.visible' )
206
206
cy . wait ( 500 )
207
- cy . get ( '.vuex-state-inspector' ) . then ( el => {
207
+ cy . get ( '.vuex-state-inspector' ) . then ( ( el ) => {
208
208
expect ( el . text ( ) ) . to . include ( 'count:42' )
209
- expect ( el . text ( ) ) . to . include ( ' date:' + new Date ( 'Fri Dec 22 2017 10:12:04 GMT+0100 (CET)' ) )
209
+ expect ( el . text ( ) ) . to . include ( ` date:${ new Date ( 'Fri Dec 22 2017 10:12:04 GMT+0100 (CET)' ) } ` )
210
210
} )
211
211
cy . get ( '.import' ) . click ( )
212
212
cy . get ( '.import-state' ) . should ( 'not.be.visible' )
0 commit comments