Skip to content

Commit

Permalink
Change mock to revert test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes committed Oct 18, 2021
1 parent 1802dc7 commit e24d0dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jest.mock('../../../kibana_services', () => ({
get: jest.fn(),
},
fieldFormats: {
getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })),
getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => (value ? value : '-') })),
},
}),
}));
Expand Down Expand Up @@ -603,6 +603,6 @@ describe('Discover grid cell rendering', function () {
setCellProps={jest.fn()}
/>
);
expect(component.html()).toMatchInlineSnapshot(`"<span></span>"`);
expect(component.html()).toMatchInlineSnapshot(`"<span>-</span>"`);
});
});

0 comments on commit e24d0dd

Please sign in to comment.