@@ -233,9 +233,6 @@ describe('LiveController data-model Tests', () => {
233
233
await waitFor ( ( ) => expect ( element ) . toHaveTextContent ( 'Checkbox 2 is checked' ) ) ;
234
234
235
235
expect ( controller . dataValue ) . toEqual ( { form : { check1 : '1' , check2 : '1' } } ) ;
236
-
237
- // assert all calls were done the correct number of times
238
- fetchMock . done ( ) ;
239
236
} ) ;
240
237
241
238
it ( 'sends correct data for initially checked checkbox fields' , async ( ) => {
@@ -271,9 +268,6 @@ describe('LiveController data-model Tests', () => {
271
268
await waitFor ( ( ) => expect ( element ) . toHaveTextContent ( 'Checkbox 1 is unchecked' ) ) ;
272
269
273
270
expect ( controller . dataValue ) . toEqual ( { form : { check1 : null , check2 : '1' } } ) ;
274
-
275
- // assert all calls were done the correct number of times
276
- fetchMock . done ( ) ;
277
271
} ) ;
278
272
279
273
it ( 'sends correct data for array valued checkbox fields' , async ( ) => {
@@ -309,9 +303,6 @@ describe('LiveController data-model Tests', () => {
309
303
await waitFor ( ( ) => expect ( element ) . toHaveTextContent ( 'Checkbox 2 is checked' ) ) ;
310
304
311
305
expect ( controller . dataValue ) . toEqual ( { form : { check : [ 'foo' , 'bar' ] } } ) ;
312
-
313
- // assert all calls were done the correct number of times
314
- fetchMock . done ( ) ;
315
306
} ) ;
316
307
317
308
it ( 'sends correct data for array valued checkbox fields with initial data' , async ( ) => {
@@ -347,9 +338,6 @@ describe('LiveController data-model Tests', () => {
347
338
await waitFor ( ( ) => expect ( element ) . toHaveTextContent ( 'Checkbox 1 is unchecked' ) ) ;
348
339
349
340
expect ( controller . dataValue ) . toEqual ( { form : { check : [ 'bar' ] } } ) ;
350
-
351
- // assert all calls were done the correct number of times
352
- fetchMock . done ( ) ;
353
341
} ) ;
354
342
355
343
it ( 'sends correct data for select multiple field' , async ( ) => {
@@ -385,9 +373,6 @@ describe('LiveController data-model Tests', () => {
385
373
await waitFor ( ( ) => expect ( element ) . toHaveTextContent ( 'Select: foo bar Option 2 is selected' ) ) ;
386
374
387
375
expect ( controller . dataValue ) . toEqual ( { form : { select : [ 'foo' , 'bar' ] } } ) ;
388
-
389
- // assert all calls were done the correct number of times
390
- fetchMock . done ( ) ;
391
376
} ) ;
392
377
393
378
it ( 'sends correct data for select multiple field with initial data' , async ( ) => {
@@ -429,9 +414,6 @@ describe('LiveController data-model Tests', () => {
429
414
await waitFor ( ( ) => expect ( element ) . toHaveTextContent ( 'Select: foo bar Option 2 is unselected' ) ) ;
430
415
431
416
expect ( controller . dataValue ) . toEqual ( { form : { select : [ ] } } ) ;
432
-
433
- // assert all calls were done the correct number of times
434
- fetchMock . done ( ) ;
435
417
} ) ;
436
418
437
419
it ( 'updates correctly when live#update is on a parent element' , async ( ) => {
0 commit comments