Skip to content

Commit

Permalink
test: πŸ’ add missing methods in mock
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jun 28, 2021
1 parent 37eda8d commit dd23a31
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugins/discover/public/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const createSetupContract = (): Setup => {
getUrl: jest.fn(),
useUrl: jest.fn(),
navigate: jest.fn(),
extract: jest.fn(),
inject: jest.fn(),
telemetry: jest.fn(),
migrations: {},
},
};
return setupContract;
Expand All @@ -37,6 +41,10 @@ const createStartContract = (): Start => {
getUrl: jest.fn(),
useUrl: jest.fn(),
navigate: jest.fn(),
extract: jest.fn(),
inject: jest.fn(),
telemetry: jest.fn(),
migrations: {},
},
};
return startContract;
Expand Down

0 comments on commit dd23a31

Please sign in to comment.