@@ -280,13 +280,13 @@ describe('withViewModel', () => {
280280 } ) ;
281281
282282 const createTestPayloadChanges = async ( {
283- config ,
283+ vmConfig ,
284284 wrapViewInObserver,
285285 renderPayloadInView,
286286 expectedCounterInPayload,
287287 expectedRerendersCountInVMComponentView,
288288 } : {
289- config ?: ViewModelsRawConfig ;
289+ vmConfig ?: ViewModelsRawConfig ;
290290 wrapViewInObserver ?: boolean ;
291291 renderPayloadInView ?: boolean ;
292292 expectedCounterInPayload : number ;
@@ -320,7 +320,7 @@ describe('withViewModel', () => {
320320
321321 const Component = withViewModel ( VM , {
322322 generateId : createIdGenerator ( ) ,
323- config ,
323+ vmConfig ,
324324 } ) ( VMConnectedComponentView ) ;
325325
326326 const SuperContainer = ( ) => {
@@ -401,15 +401,15 @@ describe('withViewModel', () => {
401401
402402 test ( 'View should have actual payload state (comparePayload: strict)' , async ( ) => {
403403 await createTestPayloadChanges ( {
404- config : { comparePayload : 'strict' } ,
404+ vmConfig : { comparePayload : 'strict' } ,
405405 expectedCounterInPayload : 3 ,
406406 expectedRerendersCountInVMComponentView : 7 ,
407407 } ) ;
408408 } ) ;
409409
410410 test ( 'View should have actual payload state (comparePayload: strict + observer view wrap())' , async ( ) => {
411411 await createTestPayloadChanges ( {
412- config : { comparePayload : 'strict' } ,
412+ vmConfig : { comparePayload : 'strict' } ,
413413 expectedCounterInPayload : 3 ,
414414 expectedRerendersCountInVMComponentView : 1 ,
415415 wrapViewInObserver : true ,
@@ -418,7 +418,7 @@ describe('withViewModel', () => {
418418
419419 test ( 'View should have actual payload state (comparePayload: strict + observer view wrap() + render payload in view)' , async ( ) => {
420420 await createTestPayloadChanges ( {
421- config : { comparePayload : 'strict' } ,
421+ vmConfig : { comparePayload : 'strict' } ,
422422 expectedCounterInPayload : 3 ,
423423 expectedRerendersCountInVMComponentView : getBasedReactVersion ( {
424424 18 : 4 ,
@@ -431,15 +431,15 @@ describe('withViewModel', () => {
431431
432432 test ( 'View should have actual payload state (comparePayload: shallow)' , async ( ) => {
433433 await createTestPayloadChanges ( {
434- config : { comparePayload : 'shallow' } ,
434+ vmConfig : { comparePayload : 'shallow' } ,
435435 expectedCounterInPayload : 3 ,
436436 expectedRerendersCountInVMComponentView : 7 ,
437437 } ) ;
438438 } ) ;
439439
440440 test ( 'View should have actual payload state (comparePayload: shallow + observer view wrap())' , async ( ) => {
441441 await createTestPayloadChanges ( {
442- config : { comparePayload : 'shallow' } ,
442+ vmConfig : { comparePayload : 'shallow' } ,
443443 expectedCounterInPayload : 3 ,
444444 expectedRerendersCountInVMComponentView : 1 ,
445445 wrapViewInObserver : true ,
@@ -448,7 +448,7 @@ describe('withViewModel', () => {
448448
449449 test ( 'View should have actual payload state (comparePayload: shallow + observer view wrap() + render payload in view)' , async ( ) => {
450450 await createTestPayloadChanges ( {
451- config : { comparePayload : 'shallow' } ,
451+ vmConfig : { comparePayload : 'shallow' } ,
452452 expectedCounterInPayload : 3 ,
453453 expectedRerendersCountInVMComponentView : getBasedReactVersion ( {
454454 18 : 4 ,
@@ -461,15 +461,15 @@ describe('withViewModel', () => {
461461
462462 test ( 'View should have actual payload state (comparePayload: false)' , async ( ) => {
463463 await createTestPayloadChanges ( {
464- config : { comparePayload : false } ,
464+ vmConfig : { comparePayload : false } ,
465465 expectedCounterInPayload : 3 ,
466466 expectedRerendersCountInVMComponentView : 7 ,
467467 } ) ;
468468 } ) ;
469469
470470 test ( 'View should have actual payload state (comparePayload: false + observer view wrap())' , async ( ) => {
471471 await createTestPayloadChanges ( {
472- config : { comparePayload : false } ,
472+ vmConfig : { comparePayload : false } ,
473473 expectedCounterInPayload : 3 ,
474474 expectedRerendersCountInVMComponentView : 1 ,
475475 wrapViewInObserver : true ,
@@ -478,7 +478,7 @@ describe('withViewModel', () => {
478478
479479 test ( 'View should have actual payload state (comparePayload: false + observer view wrap() + render payload in view)' , async ( ) => {
480480 await createTestPayloadChanges ( {
481- config : { comparePayload : false } ,
481+ vmConfig : { comparePayload : false } ,
482482 expectedCounterInPayload : 3 ,
483483 expectedRerendersCountInVMComponentView : getBasedReactVersion ( {
484484 18 : 7 ,
@@ -491,15 +491,15 @@ describe('withViewModel', () => {
491491
492492 test ( 'View should have actual payload state (comparePayload: comparer.shallow)' , async ( ) => {
493493 await createTestPayloadChanges ( {
494- config : { comparePayload : comparer . shallow } ,
494+ vmConfig : { comparePayload : comparer . shallow } ,
495495 expectedCounterInPayload : 3 ,
496496 expectedRerendersCountInVMComponentView : 7 ,
497497 } ) ;
498498 } ) ;
499499
500500 test ( 'View should have actual payload state (comparePayload: comparer.shallow + observer view wrap())' , async ( ) => {
501501 await createTestPayloadChanges ( {
502- config : { comparePayload : comparer . shallow } ,
502+ vmConfig : { comparePayload : comparer . shallow } ,
503503 expectedCounterInPayload : 3 ,
504504 expectedRerendersCountInVMComponentView : 1 ,
505505 wrapViewInObserver : true ,
@@ -508,7 +508,7 @@ describe('withViewModel', () => {
508508
509509 test ( 'View should have actual payload state (comparePayload: comparer.shallow + observer view wrap() + render payload in view)' , async ( ) => {
510510 await createTestPayloadChanges ( {
511- config : { comparePayload : comparer . shallow } ,
511+ vmConfig : { comparePayload : comparer . shallow } ,
512512 expectedCounterInPayload : 3 ,
513513 expectedRerendersCountInVMComponentView : getBasedReactVersion ( {
514514 18 : 4 ,
@@ -521,15 +521,15 @@ describe('withViewModel', () => {
521521
522522 test ( 'View should have actual payload state (comparePayload: comparer.structural)' , async ( ) => {
523523 await createTestPayloadChanges ( {
524- config : { comparePayload : comparer . structural } ,
524+ vmConfig : { comparePayload : comparer . structural } ,
525525 expectedCounterInPayload : 3 ,
526526 expectedRerendersCountInVMComponentView : 7 ,
527527 } ) ;
528528 } ) ;
529529
530530 test ( 'View should have actual payload state (comparePayload: comparer.structural + observer view wrap())' , async ( ) => {
531531 await createTestPayloadChanges ( {
532- config : { comparePayload : comparer . structural } ,
532+ vmConfig : { comparePayload : comparer . structural } ,
533533 expectedCounterInPayload : 3 ,
534534 expectedRerendersCountInVMComponentView : 1 ,
535535 wrapViewInObserver : true ,
@@ -538,7 +538,7 @@ describe('withViewModel', () => {
538538
539539 test ( 'View should have actual payload state (comparePayload: comparer.structural + observer view wrap() + render payload in view)' , async ( ) => {
540540 await createTestPayloadChanges ( {
541- config : { comparePayload : comparer . structural } ,
541+ vmConfig : { comparePayload : comparer . structural } ,
542542 expectedCounterInPayload : 3 ,
543543 expectedRerendersCountInVMComponentView : getBasedReactVersion ( {
544544 18 : 4 ,
@@ -551,15 +551,15 @@ describe('withViewModel', () => {
551551
552552 test ( 'View should have actual payload state (comparePayload: comparer.identity)' , async ( ) => {
553553 await createTestPayloadChanges ( {
554- config : { comparePayload : comparer . identity } ,
554+ vmConfig : { comparePayload : comparer . identity } ,
555555 expectedCounterInPayload : 3 ,
556556 expectedRerendersCountInVMComponentView : 7 ,
557557 } ) ;
558558 } ) ;
559559
560560 test ( 'View should have actual payload state (comparePayload: comparer.identity + observer view wrap())' , async ( ) => {
561561 await createTestPayloadChanges ( {
562- config : { comparePayload : comparer . identity } ,
562+ vmConfig : { comparePayload : comparer . identity } ,
563563 expectedCounterInPayload : 3 ,
564564 expectedRerendersCountInVMComponentView : 1 ,
565565 wrapViewInObserver : true ,
@@ -568,7 +568,7 @@ describe('withViewModel', () => {
568568
569569 test ( 'View should have actual payload state (comparePayload: comparer.identity + observer view wrap() + render payload in view)' , async ( ) => {
570570 await createTestPayloadChanges ( {
571- config : { comparePayload : comparer . identity } ,
571+ vmConfig : { comparePayload : comparer . identity } ,
572572 expectedCounterInPayload : 3 ,
573573 expectedRerendersCountInVMComponentView : getBasedReactVersion ( {
574574 18 : 7 ,
@@ -581,15 +581,15 @@ describe('withViewModel', () => {
581581
582582 test ( 'View should have actual payload state (comparePayload: comparer.default)' , async ( ) => {
583583 await createTestPayloadChanges ( {
584- config : { comparePayload : comparer . default } ,
584+ vmConfig : { comparePayload : comparer . default } ,
585585 expectedCounterInPayload : 3 ,
586586 expectedRerendersCountInVMComponentView : 7 ,
587587 } ) ;
588588 } ) ;
589589
590590 test ( 'View should have actual payload state (comparePayload: comparer.default + observer view wrap())' , async ( ) => {
591591 await createTestPayloadChanges ( {
592- config : { comparePayload : comparer . default } ,
592+ vmConfig : { comparePayload : comparer . default } ,
593593 expectedCounterInPayload : 3 ,
594594 expectedRerendersCountInVMComponentView : 1 ,
595595 wrapViewInObserver : true ,
@@ -598,7 +598,7 @@ describe('withViewModel', () => {
598598
599599 test ( 'View should have actual payload state (comparePayload: comparer.default + observer view wrap() + render payload in view)' , async ( ) => {
600600 await createTestPayloadChanges ( {
601- config : { comparePayload : comparer . default } ,
601+ vmConfig : { comparePayload : comparer . default } ,
602602 expectedCounterInPayload : 3 ,
603603 expectedRerendersCountInVMComponentView : getBasedReactVersion ( {
604604 18 : 7 ,
@@ -619,7 +619,7 @@ describe('withViewModel', () => {
619619 }
620620
621621 const ChildView = withViewModel ( ChildVM , {
622- config : {
622+ vmConfig : {
623623 comparePayload : 'shallow' ,
624624 } ,
625625 } ) (
@@ -654,7 +654,7 @@ describe('withViewModel', () => {
654654 }
655655
656656 const ParentView = withViewModel ( ParentVM , {
657- config : {
657+ vmConfig : {
658658 comparePayload : 'shallow' ,
659659 } ,
660660 } ) (
0 commit comments