diff --git a/x-pack/legacy/plugins/uptime/public/components/functional/monitor_list/monitor_list_drawer/__tests__/__snapshots__/most_recent_error.test.tsx.snap b/x-pack/legacy/plugins/uptime/public/components/functional/monitor_list/monitor_list_drawer/__tests__/__snapshots__/most_recent_error.test.tsx.snap index f5e27354c995a..5c1fe27d234a3 100644 --- a/x-pack/legacy/plugins/uptime/public/components/functional/monitor_list/monitor_list_drawer/__tests__/__snapshots__/most_recent_error.test.tsx.snap +++ b/x-pack/legacy/plugins/uptime/public/components/functional/monitor_list/monitor_list_drawer/__tests__/__snapshots__/most_recent_error.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`MostRecentError component renders properly with empty data 1`] = ` +exports[`MostRecentError component renders properly with mock data 1`] = ` Array [
{ let monitorDetails: MonitorDetails; let monitorError: MonitorError; + beforeAll(() => { + moment.prototype.fromNow = jest.fn(() => '5 days ago'); + }); + beforeEach(() => { monitorError = { type: 'io', @@ -39,7 +44,7 @@ describe('MostRecentError component', () => { expect(component).toMatchSnapshot(); }); - it.skip('renders properly with empty data', () => { + it('renders properly with mock data', () => { const component = renderWithIntl(