Skip to content

Commit

Permalink
karma mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Nov 25, 2019
1 parent 357c47b commit a5edc3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/legacy/ui/public/new_platform/new_platform.karma_mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const mockObservable = () => {
};
};

const mockComponent = () => {
return null;
};

export const mockUiSettings = {
get: (item) => {
return mockUiSettings[item];
Expand Down Expand Up @@ -139,6 +143,9 @@ export const npStart = {
getProvider: sinon.fake(),
},
getSuggestions: sinon.fake(),
ui: {
IndexPatternSelect: mockComponent,
},
query: {
filterManager: {
getFetches$: sinon.fake(),
Expand Down

0 comments on commit a5edc3b

Please sign in to comment.