Skip to content

Commit

Permalink
Update jest
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Nov 15, 2019
1 parent 0a00329 commit a141a3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ mockUseKibanaCore.mockImplementation(() => ({
uiSettings: mockUiSettings,
}));

jest.mock('ui/vis/lib/timezone', () => ({
timezoneProvider: () => () => 'America/New_York',
}));

describe('Pane', () => {
test('renders correctly against snapshot', () => {
const EmptyComponent = shallow(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ mockUseKibanaCore.mockImplementation(() => ({
uiSettings: mockUiSettings,
}));

jest.mock('ui/vis/lib/timezone', () => ({
timezoneProvider: () => () => 'America/New_York',
}));

describe('Properties', () => {
const usersViewing = ['elastic'];

Expand Down

0 comments on commit a141a3f

Please sign in to comment.