1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Android: Add support for Markdown editor plugins (#10086)

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
Henry Heino
2024-03-11 08:02:15 -07:00
committed by GitHub
parent 238468ddaa
commit 55cafb8891
72 changed files with 3384 additions and 265 deletions

View File

@ -9,8 +9,17 @@ import Setting from '@joplin/lib/models/Setting';
import { _ } from '@joplin/lib/locale';
import { MenuProvider } from 'react-native-popup-menu';
import { setupDatabaseAndSynchronizer, switchClient } from '@joplin/lib/testing/test-utils';
import commandDeclarations from './commandDeclarations';
import CommandService from '@joplin/lib/services/CommandService';
describe('NoteEditor', () => {
beforeAll(() => {
// This allows the NoteEditor test to register editor commands without errors.
for (const declaration of commandDeclarations) {
CommandService.instance().registerDeclaration(declaration);
}
});
beforeEach(async () => {
// Required to use ExtendedWebView
await setupDatabaseAndSynchronizer(0);
@ -30,6 +39,7 @@ describe('NoteEditor', () => {
onSelectionChange={()=>{}}
onUndoRedoDepthChange={()=>{}}
onAttach={()=>{}}
plugins={{}}
/>
</MenuProvider>,
);