mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Lexical: Added tests to cover recent changes
Also updated list tests to new test process.
This commit is contained in:
@ -37,6 +37,7 @@ import {QuoteNode} from "@lexical/rich-text/LexicalQuoteNode";
|
||||
import {DetailsNode} from "@lexical/rich-text/LexicalDetailsNode";
|
||||
import {EditorUiContext} from "../../../../ui/framework/core";
|
||||
import {EditorUIManager} from "../../../../ui/framework/manager";
|
||||
import {ImageNode} from "@lexical/rich-text/LexicalImageNode";
|
||||
|
||||
type TestEnv = {
|
||||
readonly container: HTMLDivElement;
|
||||
@ -484,6 +485,9 @@ export function createTestContext(): EditorUiContext {
|
||||
const editor = createTestEditor({
|
||||
namespace: 'testing',
|
||||
theme: {},
|
||||
nodes: [
|
||||
ImageNode,
|
||||
]
|
||||
});
|
||||
|
||||
editor.setRootElement(editorDOM);
|
||||
|
Reference in New Issue
Block a user