Skip to content

Commit

Permalink
Fixing tests by mocking out useKibanaUISetting
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Feb 4, 2020
1 parent c2dac03 commit 35795e2
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
jest.mock('../../../utils/use_kibana_ui_setting', () => ({
_esModule: true,
useKibanaUiSetting: jest.fn(() => [
[
{
from: 'now/d',
to: 'now/d',
display: 'Today',
},
],
]),
}));

import React from 'react';
import { MetricsTimeControls } from './time_controls';
Expand Down

0 comments on commit 35795e2

Please sign in to comment.