1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-mobile/components/screens/ConfigScreen/plugins/testUtils/pluginServiceSetup.ts

11 lines
320 B
TypeScript
Raw Normal View History

import PluginService from '@joplin/lib/services/plugins/PluginService';
const pluginServiceSetup = () => {
const runner = { run: ()=> {}, stop: ()=>{} } as any;
PluginService.instance().initialize(
'2.14.0', { joplin: {} }, runner, { dispatch: ()=>{}, getState: ()=>{} },
);
};
export default pluginServiceSetup;