File tree Expand file tree Collapse file tree
x-pack/plugins/ml/public/application/explorer/select_limit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ import { act } from 'react-dom/test-utils';
99import { shallow } from 'enzyme' ;
1010import { SelectLimit } from './select_limit' ;
1111
12- jest . useFakeTimers ( ) ;
13-
1412describe ( 'SelectLimit' , ( ) => {
1513 test ( 'creates correct initial selected value' , ( ) => {
1614 const wrapper = shallow ( < SelectLimit /> ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const defaultLimit = limitOptions[1];
2424export const limit$ = new BehaviorSubject < number > ( defaultLimit ) ;
2525
2626export const useSwimlaneLimit = ( ) : [ number , ( newLimit : number ) => void ] => {
27- const limit = useObservable ( limit$ ) ;
27+ const limit = useObservable ( limit$ , defaultLimit ) ;
2828
2929 return [ limit ! , ( newLimit : number ) => limit$ . next ( newLimit ) ] ;
3030} ;
You can’t perform that action at this time.
0 commit comments