Skip to content

Commit

Permalink
test: πŸ’ add urlGenerator mock
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jun 4, 2020
1 parent f177845 commit e7c61f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/discover/public/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const createSetupContract = (): Setup => {
const createStartContract = (): Start => {
const startContract: Start = {
savedSearchLoader: {} as any,
urlGenerator: {
createUrl: jest.fn(),
} as any,
};
return startContract;
};
Expand Down

0 comments on commit e7c61f1

Please sign in to comment.