Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Nov 17, 2021
1 parent 5d5bb9b commit e07f13e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jest.mock('./edit_space', () => ({
},
}));

import { coreMock, scopedHistoryMock } from 'src/core/public/mocks';
import { coreMock, scopedHistoryMock, themeServiceMock } from 'src/core/public/mocks';

import { featuresPluginMock } from '../../../features/public/mocks';
import type { PluginsStart } from '../plugin';
Expand Down Expand Up @@ -51,6 +51,7 @@ async function mountApp(basePath: string, pathname: string, spaceId?: string) {
element: container,
setBreadcrumbs,
history: scopedHistoryMock.create({ pathname }),
theme$: themeServiceMock.createTheme$(),
});

return { unmount, container, setBreadcrumbs, docTitle: coreStart.chrome.docTitle };
Expand Down

0 comments on commit e07f13e

Please sign in to comment.