Skip to content

Commit

Permalink
fix ml mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Sep 24, 2019
1 parent e6ea811 commit 9143806
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export const uiTimefilterMock = {
return this.isTimeRangeSelectorEnabled;
},
enableAutoRefreshSelector() {
this.isAutoRefreshSelectorEnabled = true;
this._isAutoRefreshSelectorEnabled = true;
},
enableTimeRangeSelector() {
this.isTimeRangeSelectorEnabled = true;
this._isTimeRangeSelectorEnabled = true;
},
getEnabledUpdated$() {
return { subscribe: jest.fn() };
Expand All @@ -62,8 +62,8 @@ export const uiTimefilterMock = {
getTimeUpdate$() {
return { subscribe: jest.fn() };
},
isAutoRefreshSelectorEnabled: false,
isTimeRangeSelectorEnabled: false,
_isAutoRefreshSelectorEnabled: false,
_isTimeRangeSelectorEnabled: false,
refreshInterval: { value: 0, pause: true },
on: (event: string, reload: () => void) => {},
setRefreshInterval(refreshInterval: RefreshInterval) {
Expand Down

0 comments on commit 9143806

Please sign in to comment.