Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Constance authored Apr 1, 2021
1 parent cf897c4 commit a30b78b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { setMockValues, setMockActions, mountWithIntl } from '../../../../__mock
// NOTE: We're mocking FormattedRelative here because it (currently) has
// console warn issues, and it allows us to skip mocking dates
jest.mock('@kbn/i18n/react', () => ({
...jest.requireActual('@kbn/i18n/react'),
...(jest.requireActual('@kbn/i18n/react') as object),
FormattedRelative: jest.fn(() => '20 hours ago'),
}));

Expand Down

0 comments on commit a30b78b

Please sign in to comment.