Skip to content

Commit bb44334

Browse files
committed
Lexical: Added tests to cover recent changes
Also updated list tests to new test process.
1 parent 9bfcadd commit bb44334

File tree

4 files changed

+219
-175
lines changed

4 files changed

+219
-175
lines changed

resources/js/wysiwyg/lexical/core/__tests__/utils/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {QuoteNode} from "@lexical/rich-text/LexicalQuoteNode";
3737
import {DetailsNode} from "@lexical/rich-text/LexicalDetailsNode";
3838
import {EditorUiContext} from "../../../../ui/framework/core";
3939
import {EditorUIManager} from "../../../../ui/framework/manager";
40+
import {ImageNode} from "@lexical/rich-text/LexicalImageNode";
4041

4142
type TestEnv = {
4243
readonly container: HTMLDivElement;
@@ -484,6 +485,9 @@ export function createTestContext(): EditorUiContext {
484485
const editor = createTestEditor({
485486
namespace: 'testing',
486487
theme: {},
488+
nodes: [
489+
ImageNode,
490+
]
487491
});
488492

489493
editor.setRootElement(editorDOM);

0 commit comments

Comments
 (0)