File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
src/utils/api/optionManager Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ import DefaultOptions from './defaultOptions.js' ;
2+ import DefaultTabInnerComponent from '../../../tab/defaulTabInner.js' ;
3+ describe ( 'DefaultOptions.prototype.getOptions : ' , ( ) => {
4+ test ( 'returned options should have a correct structure and format' , ( ) => {
5+ const expected = {
6+ tabs : [ ] ,
7+ selectedTabID : '' ,
8+ beforeSelect : expect . any ( Function ) ,
9+ beforeClose : expect . any ( Function ) ,
10+ onOpen : expect . any ( Function ) ,
11+ onClose : expect . any ( Function ) ,
12+ onSelect : expect . any ( Function ) ,
13+ onChange : expect . any ( Function ) ,
14+ onLoad : expect . any ( Function ) ,
15+ onDestroy : expect . any ( Function ) ,
16+ onInit : expect . any ( Function ) ,
17+ accessibility : true ,
18+ defaultPanelComponent : expect . any ( Function ) ,
19+ direction : 'ltr' ,
20+ tabComponent : expect . any ( Function )
21+ } ;
22+ const received = new ( DefaultOptions ) ( DefaultTabInnerComponent ) . getOptions ( ) ; ;
23+ expect ( received ) . toEqual ( expected ) ;
24+ } ) ;
25+ } ) ;
You can’t perform that action at this time.
0 commit comments