@@ -116,8 +116,9 @@ describe('custom commands', () => {
116
116
expect ( steps ) . toEqual ( [
117
117
{
118
118
name : 'tasklog: hello' ,
119
- steps : [ { name : 'task: log, hello' , steps : [ ] } ] ,
119
+ steps : [ ] ,
120
120
} ,
121
+ { name : 'task: log, hello' , steps : [ ] } ,
121
122
{
122
123
name : 'get: div' ,
123
124
steps : [
@@ -141,11 +142,9 @@ describe('custom commands', () => {
141
142
expect ( steps ) . toEqual ( [
142
143
{
143
144
name : 'tasklogWithCypressLog: hello' ,
144
- steps : [
145
- { name : 'tasklogWithCypressLog: something' , steps : [ ] } ,
146
- { name : 'task: log, hello' , steps : [ ] } ,
147
- ] ,
145
+ steps : [ { name : 'tasklogWithCypressLog: something' , steps : [ ] } ] ,
148
146
} ,
147
+ { name : 'task: log, hello' , steps : [ ] } ,
149
148
{
150
149
name : 'get: div' ,
151
150
steps : [
@@ -169,21 +168,21 @@ describe('custom commands', () => {
169
168
expect ( steps ) . toEqual ( [
170
169
{
171
170
name : 'tasklog: hello' ,
172
- steps : [ { name : 'task: log, hello' , steps : [ ] } ] ,
171
+ steps : [ ] ,
173
172
} ,
173
+ { name : 'task: log, hello' , steps : [ ] } ,
174
174
{
175
175
name : 'returnGet: hello' ,
176
176
steps : [
177
177
{ name : 'task: log, hello' , steps : [ ] } ,
178
178
{ name : 'wrap' , steps : [ ] } ,
179
179
{
180
180
name : 'get: div:eq(100)' ,
181
- steps : [
182
- {
183
- name : 'assert: expected **div:eq(100)** not to exist in the DOM' ,
184
- steps : [ ] ,
185
- } ,
186
- ] ,
181
+ steps : [ ] ,
182
+ } ,
183
+ {
184
+ name : 'assert: expected **div:eq(100)** not to exist in the DOM' ,
185
+ steps : [ ] ,
187
186
} ,
188
187
] ,
189
188
} ,
@@ -214,12 +213,12 @@ describe('custom commands', () => {
214
213
{ name : 'wait: 1' , steps : [ ] } ,
215
214
{ name : 'wait: 2' , steps : [ ] } ,
216
215
{ name : 'task: fileExists, nonexistingd' , steps : [ ] } ,
217
- {
218
- name : 'assert: expected **false** to equal **false**' ,
219
- steps : [ ] ,
220
- } ,
221
216
] ,
222
217
} ,
218
+ {
219
+ name : 'assert: expected **false** to equal **false**' ,
220
+ steps : [ ] ,
221
+ } ,
223
222
] ) ;
224
223
} ) ;
225
224
@@ -241,14 +240,14 @@ describe('custom commands', () => {
241
240
{ name : 'wait: 1' , steps : [ ] } ,
242
241
{ name : 'wait: 2' , steps : [ ] } ,
243
242
{ name : 'task: fileExists, nonexistingd2' , steps : [ ] } ,
244
- {
245
- name : 'assert: expected **false** to equal **false**' ,
246
- steps : [ ] ,
247
- } ,
248
243
] ,
249
244
} ,
250
245
] ,
251
246
} ,
247
+ {
248
+ name : 'assert: expected **false** to equal **false**' ,
249
+ steps : [ ] ,
250
+ } ,
252
251
] ) ;
253
252
} ) ;
254
253
0 commit comments