Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Oct 6, 2023
1 parent c71333b commit f6de06b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/lib/manager-api/src/tests/layout.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { themes } from '@storybook/theming';
import type { API_Provider } from 'lib/types/src';
import EventEmitter from 'events';
import type { SubAPI, SubState } from '../modules/layout';
import type { SubState as AddonsSubState } from '../modules/addons';
import { defaultLayoutState, init as initLayout } from '../modules/layout';
Expand Down Expand Up @@ -33,7 +34,10 @@ describe('layout API', () => {
return currentState as unknown as State;
}),
} as unknown as Store;
provider = { getConfig: jest.fn(() => ({})) } as unknown as API_Provider<API>;
provider = {
getConfig: jest.fn(() => ({})),
channel: new EventEmitter(),
} as unknown as API_Provider<API>;
layoutApi = initLayout({
store,
provider,
Expand Down

0 comments on commit f6de06b

Please sign in to comment.