@@ -489,7 +489,7 @@ describe('onLoad callback : ', () => {
489
489
expect . assertions ( 2 ) ;
490
490
op . onLoad = jest . fn ( function ( ) {
491
491
expect ( Object . prototype . toString . call ( this ) ) . toBe ( '[object Object]' ) ;
492
- expect ( this . hasOwnProperty ( 'getData' ) ) . toBe ( true ) ;
492
+ expect ( Object . prototype . hasOwnProperty . call ( this , 'getData' ) ) . toBe ( true ) ;
493
493
} ) ;
494
494
renderApp ( ) ;
495
495
op . onLoad = function ( ) { } ;
@@ -505,7 +505,7 @@ describe('onInit callback : ', () => {
505
505
expect . assertions ( 2 ) ;
506
506
op . onInit = jest . fn ( function ( ) {
507
507
expect ( Object . prototype . toString . call ( this ) ) . toBe ( '[object Object]' ) ;
508
- expect ( this . hasOwnProperty ( 'getData' ) ) . toBe ( true ) ;
508
+ expect ( Object . prototype . hasOwnProperty . call ( this , 'getData' ) ) . toBe ( true ) ;
509
509
} ) ;
510
510
renderApp ( ) ;
511
511
op . onInit = function ( ) { } ;
@@ -541,7 +541,7 @@ describe('onChange callback : ', () => {
541
541
currentData . selectedTabID = '6' ;
542
542
previousData . selectedTabID = '6' ;
543
543
} ) ;
544
- const onChange2 = jest . fn ( ( { currentData , previousData , closedTabIDs , openedTabIDs } ) => { } ) ;
544
+ const onChange2 = jest . fn ( ( ) => { } ) ;
545
545
const onOpen = jest . fn ( ( ) => { } ) ;
546
546
const onClose = jest . fn ( ( ) => { } ) ;
547
547
const onSelect = jest . fn ( ( ) => { } ) ;
@@ -587,7 +587,7 @@ describe('onChange callback : ', () => {
587
587
expect . assertions ( 2 ) ;
588
588
op . onChange = jest . fn ( function ( ) {
589
589
expect ( Object . prototype . toString . call ( this ) ) . toBe ( '[object Object]' ) ;
590
- expect ( this . hasOwnProperty ( 'getData' ) ) . toBe ( true ) ;
590
+ expect ( Object . prototype . hasOwnProperty . call ( this , 'getData' ) ) . toBe ( true ) ;
591
591
} ) ;
592
592
renderApp ( ) ;
593
593
act ( ( ) => {
@@ -618,7 +618,7 @@ describe('onSelect callback : ', () => {
618
618
const onSelect1 = jest . fn ( ( param ) => {
619
619
param . previousSelectedTabId = 19 ;
620
620
} ) ;
621
- const onSelect2 = jest . fn ( ( param ) => { } ) ;
621
+ const onSelect2 = jest . fn ( ( ) => { } ) ;
622
622
act ( ( ) => {
623
623
instance . setOption ( 'onSelect' , ( param ) => {
624
624
param . currentSelectedTabId = 10 ;
@@ -637,7 +637,7 @@ describe('onSelect callback : ', () => {
637
637
expect . assertions ( 2 ) ;
638
638
op . onSelect = jest . fn ( function ( ) {
639
639
expect ( Object . prototype . toString . call ( this ) ) . toBe ( '[object Object]' ) ;
640
- expect ( this . hasOwnProperty ( 'getData' ) ) . toBe ( true ) ;
640
+ expect ( Object . prototype . hasOwnProperty . call ( this , 'getData' ) ) . toBe ( true ) ;
641
641
} ) ;
642
642
renderApp ( ) ;
643
643
act ( ( ) => {
@@ -685,7 +685,7 @@ describe('onFirstSelect callback : ', () => {
685
685
const onFirstSelect1 = jest . fn ( ( param ) => {
686
686
param . previousSelectedTabId = 19 ;
687
687
} ) ;
688
- const onFirstSelect2 = jest . fn ( ( param ) => { } ) ;
688
+ const onFirstSelect2 = jest . fn ( ( ) => { } ) ;
689
689
act ( ( ) => {
690
690
instance . setOption ( 'onFirstSelect' , ( param ) => {
691
691
param . currentSelectedTabId = 10 ;
@@ -703,7 +703,7 @@ describe('onFirstSelect callback : ', () => {
703
703
expect . assertions ( 2 ) ;
704
704
op . onFirstSelect = jest . fn ( function ( ) {
705
705
expect ( Object . prototype . toString . call ( this ) ) . toBe ( '[object Object]' ) ;
706
- expect ( this . hasOwnProperty ( 'getData' ) ) . toBe ( true ) ;
706
+ expect ( Object . prototype . hasOwnProperty . call ( this , 'getData' ) ) . toBe ( true ) ;
707
707
} ) ;
708
708
renderApp ( ) ;
709
709
act ( ( ) => {
@@ -730,7 +730,7 @@ describe('onOpen callback : ', () => {
730
730
const onOpen1 = jest . fn ( ( openedTabIDs ) => {
731
731
openedTabIDs . push ( '5' ) ;
732
732
} ) ;
733
- const onOpen2 = jest . fn ( ( openedTabIDs ) => { } ) ;
733
+ const onOpen2 = jest . fn ( ( ) => { } ) ;
734
734
act ( ( ) => {
735
735
instance . setOption ( 'onOpen' , ( openedTabIDs ) => {
736
736
openedTabIDs . push ( '4' ) ;
@@ -745,11 +745,11 @@ describe('onOpen callback : ', () => {
745
745
expect . assertions ( 2 ) ;
746
746
op . onOpen = jest . fn ( function ( ) {
747
747
expect ( Object . prototype . toString . call ( this ) ) . toBe ( '[object Object]' ) ;
748
- expect ( this . hasOwnProperty ( 'getData' ) ) . toBe ( true ) ;
748
+ expect ( Object . prototype . hasOwnProperty . call ( this , 'getData' ) ) . toBe ( true ) ;
749
749
} ) ;
750
750
renderApp ( ) ;
751
751
act ( ( ) => {
752
- instance . open ( { id :'3' } ) ;
752
+ instance . open ( { id : '3' } ) ;
753
753
} ) ;
754
754
op . onOpen = function ( ) { } ;
755
755
} ) ;
@@ -772,7 +772,7 @@ describe('onClose callback : ', () => {
772
772
const onClose1 = jest . fn ( ( closedTabIDs ) => {
773
773
closedTabIDs . push ( '4' ) ;
774
774
} ) ;
775
- const onClose2 = jest . fn ( ( closedTabIDs ) => { } ) ;
775
+ const onClose2 = jest . fn ( ( ) => { } ) ;
776
776
act ( ( ) => {
777
777
instance . setOption ( 'onClose' , ( closedTabIDs ) => {
778
778
closedTabIDs . push ( '3' ) ;
@@ -787,7 +787,7 @@ describe('onClose callback : ', () => {
787
787
expect . assertions ( 2 ) ;
788
788
op . onClose = jest . fn ( function ( ) {
789
789
expect ( Object . prototype . toString . call ( this ) ) . toBe ( '[object Object]' ) ;
790
- expect ( this . hasOwnProperty ( 'getData' ) ) . toBe ( true ) ;
790
+ expect ( Object . prototype . hasOwnProperty . call ( this , 'getData' ) ) . toBe ( true ) ;
791
791
} ) ;
792
792
renderApp ( ) ;
793
793
act ( ( ) => {
0 commit comments