1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/app-mobile/components/screens/ConfigScreen/plugins/testUtils/pluginServiceSetup.ts

11 lines
320 B
TypeScript

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;