@@ -323,7 +323,7 @@ describe('context of callback options should be userProxy object : ', () => {
323323 } ;
324324 const obj = new apiConstructor ( getDeps , { options} ) ;
325325 expect ( options . onChange . mock . calls . length === 0 ) . toBe ( true ) ;
326- obj . trigger ( 'onChange' , obj . userProxy , { currentData : { } , perviousData : { } , closeTabIDs : [ ] , openTabIDs : [ ] } ) ;
326+ obj . trigger ( 'onChange' , obj . userProxy , { currentData : { } , perviousData : { } , closedTabIDs : [ ] , openTabIDs : [ ] } ) ;
327327 expect ( options . onChange . mock . calls . length === 1 ) . toBe ( true ) ;
328328 } ) ;
329329} ) ;
@@ -475,8 +475,8 @@ describe('Api.prototype._subscribeSelectedTabsHistory : ', () => {
475475 obj . activedTabsHistory . remove = jest . fn ( ( ) => { } ) ;
476476 const currentData = { selectedTabID : '2' , openTabIDs : [ '2' ] } ;
477477 const perviousData = { selectedTabID : '2' , openTabIDs : [ '2' ] } ;
478- const closeTabIDs = [ '1' , '3' ] ;
479- obj . trigger ( 'onChange' , obj . userProxy , { currentData, perviousData, closeTabIDs , openTabIDs : [ ] } ) ;
478+ const closedTabIDs = [ '1' , '3' ] ;
479+ obj . trigger ( 'onChange' , obj . userProxy , { currentData, perviousData, closedTabIDs , openTabIDs : [ ] } ) ;
480480 expect ( obj . activedTabsHistory . remove . mock . calls . length ) . toBe ( 2 ) ;
481481 expect ( obj . activedTabsHistory . remove . mock . calls [ 0 ] [ 0 ] ) . toBe ( '1' ) ;
482482 expect ( obj . activedTabsHistory . remove . mock . calls [ 1 ] [ 0 ] ) . toBe ( '3' ) ;
@@ -494,7 +494,7 @@ describe('Api.prototype._subscribeSelectedTabsHistory : ', () => {
494494 } ) ;
495495 const currentData = { selectedTabID : '2' , openTabIDs : [ '1' , '2' ] } ;
496496 const perviousData = { selectedTabID : '1' , openTabIDs : [ '1' , '2' ] } ;
497- obj . trigger ( 'onChange' , obj . userProxy , { currentData, perviousData, closeTabIDs : [ ] , openTabIDs : [ ] } ) ;
497+ obj . trigger ( 'onChange' , obj . userProxy , { currentData, perviousData, closedTabIDs : [ ] , openTabIDs : [ ] } ) ;
498498 expect ( obj . activedTabsHistory . add . mock . calls . length ) . toBe ( 1 ) ;
499499 expect ( obj . activedTabsHistory . add . mock . calls [ 0 ] [ 0 ] ) . toBe ( '1' ) ;
500500 } ) ;
0 commit comments