@@ -489,7 +489,7 @@ describe('onLoad callback : ', () => {
489489 expect . assertions ( 2 ) ;
490490 op . onLoad = jest . fn ( function ( ) {
491491 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 ) ;
493493 } ) ;
494494 renderApp ( ) ;
495495 op . onLoad = function ( ) { } ;
@@ -505,7 +505,7 @@ describe('onInit callback : ', () => {
505505 expect . assertions ( 2 ) ;
506506 op . onInit = jest . fn ( function ( ) {
507507 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 ) ;
509509 } ) ;
510510 renderApp ( ) ;
511511 op . onInit = function ( ) { } ;
@@ -541,7 +541,7 @@ describe('onChange callback : ', () => {
541541 currentData . selectedTabID = '6' ;
542542 previousData . selectedTabID = '6' ;
543543 } ) ;
544- const onChange2 = jest . fn ( ( { currentData , previousData , closedTabIDs , openedTabIDs } ) => { } ) ;
544+ const onChange2 = jest . fn ( ( ) => { } ) ;
545545 const onOpen = jest . fn ( ( ) => { } ) ;
546546 const onClose = jest . fn ( ( ) => { } ) ;
547547 const onSelect = jest . fn ( ( ) => { } ) ;
@@ -587,7 +587,7 @@ describe('onChange callback : ', () => {
587587 expect . assertions ( 2 ) ;
588588 op . onChange = jest . fn ( function ( ) {
589589 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 ) ;
591591 } ) ;
592592 renderApp ( ) ;
593593 act ( ( ) => {
@@ -618,7 +618,7 @@ describe('onSelect callback : ', () => {
618618 const onSelect1 = jest . fn ( ( param ) => {
619619 param . previousSelectedTabId = 19 ;
620620 } ) ;
621- const onSelect2 = jest . fn ( ( param ) => { } ) ;
621+ const onSelect2 = jest . fn ( ( ) => { } ) ;
622622 act ( ( ) => {
623623 instance . setOption ( 'onSelect' , ( param ) => {
624624 param . currentSelectedTabId = 10 ;
@@ -637,7 +637,7 @@ describe('onSelect callback : ', () => {
637637 expect . assertions ( 2 ) ;
638638 op . onSelect = jest . fn ( function ( ) {
639639 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 ) ;
641641 } ) ;
642642 renderApp ( ) ;
643643 act ( ( ) => {
@@ -685,7 +685,7 @@ describe('onFirstSelect callback : ', () => {
685685 const onFirstSelect1 = jest . fn ( ( param ) => {
686686 param . previousSelectedTabId = 19 ;
687687 } ) ;
688- const onFirstSelect2 = jest . fn ( ( param ) => { } ) ;
688+ const onFirstSelect2 = jest . fn ( ( ) => { } ) ;
689689 act ( ( ) => {
690690 instance . setOption ( 'onFirstSelect' , ( param ) => {
691691 param . currentSelectedTabId = 10 ;
@@ -703,7 +703,7 @@ describe('onFirstSelect callback : ', () => {
703703 expect . assertions ( 2 ) ;
704704 op . onFirstSelect = jest . fn ( function ( ) {
705705 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 ) ;
707707 } ) ;
708708 renderApp ( ) ;
709709 act ( ( ) => {
@@ -730,7 +730,7 @@ describe('onOpen callback : ', () => {
730730 const onOpen1 = jest . fn ( ( openedTabIDs ) => {
731731 openedTabIDs . push ( '5' ) ;
732732 } ) ;
733- const onOpen2 = jest . fn ( ( openedTabIDs ) => { } ) ;
733+ const onOpen2 = jest . fn ( ( ) => { } ) ;
734734 act ( ( ) => {
735735 instance . setOption ( 'onOpen' , ( openedTabIDs ) => {
736736 openedTabIDs . push ( '4' ) ;
@@ -745,11 +745,11 @@ describe('onOpen callback : ', () => {
745745 expect . assertions ( 2 ) ;
746746 op . onOpen = jest . fn ( function ( ) {
747747 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 ) ;
749749 } ) ;
750750 renderApp ( ) ;
751751 act ( ( ) => {
752- instance . open ( { id :'3' } ) ;
752+ instance . open ( { id : '3' } ) ;
753753 } ) ;
754754 op . onOpen = function ( ) { } ;
755755 } ) ;
@@ -772,7 +772,7 @@ describe('onClose callback : ', () => {
772772 const onClose1 = jest . fn ( ( closedTabIDs ) => {
773773 closedTabIDs . push ( '4' ) ;
774774 } ) ;
775- const onClose2 = jest . fn ( ( closedTabIDs ) => { } ) ;
775+ const onClose2 = jest . fn ( ( ) => { } ) ;
776776 act ( ( ) => {
777777 instance . setOption ( 'onClose' , ( closedTabIDs ) => {
778778 closedTabIDs . push ( '3' ) ;
@@ -787,7 +787,7 @@ describe('onClose callback : ', () => {
787787 expect . assertions ( 2 ) ;
788788 op . onClose = jest . fn ( function ( ) {
789789 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 ) ;
791791 } ) ;
792792 renderApp ( ) ;
793793 act ( ( ) => {
0 commit comments