Skip to content

Commit

Permalink
fix PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Apr 7, 2020
1 parent 40beba8 commit dd539e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/plugins/data/public/field_formats/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ const createStartContractMock = () => fieldFormatsMock as FieldFormatsStart;

const createMock = () => {
const mocked: jest.Mocked<FieldFormatsServiceClientContract> = {
setup: jest.fn(),
start: jest.fn(),
setup: jest.fn().mockReturnValue(createsetupContractMock()),
start: jest.fn().mockReturnValue(createStartContractMock()),
};

mocked.setup.mockReturnValue(createSetupContractMock());
mocked.start.mockReturnValue(createStartContractMock());
return mocked;
};

Expand Down

0 comments on commit dd539e0

Please sign in to comment.