Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlipski committed Jan 17, 2025
1 parent b34346d commit 5100f2a
Show file tree
Hide file tree
Showing 3 changed files with 1,848 additions and 1,174 deletions.
7 changes: 6 additions & 1 deletion packages/core/src/api/testUtil/cases/defaultSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ import {
DefaultInlineContentSchema,
DefaultStyleSchema,
} from "../../../blocks/defaultBlocks.js";
import { pageBreakSchema } from "../../../blocks/PageBreakBlockContent/schema.js";
import {
pageBreakSchema,
withPageBreak,
} from "../../../blocks/PageBreakBlockContent/schema.js";
import { BlockNoteEditor } from "../../../editor/BlockNoteEditor.js";
import { BlockNoteSchema } from "../../../editor/BlockNoteSchema";

export const defaultSchemaTestCases: EditorTestCases<
DefaultBlockSchema & typeof pageBreakSchema.blockSchema,
Expand All @@ -17,6 +21,7 @@ export const defaultSchemaTestCases: EditorTestCases<
name: "default schema",
createEditor: () => {
return BlockNoteEditor.create({
schema: withPageBreak(BlockNoteSchema.create()),
uploadFile: uploadToTmpFilesDotOrg_DEV_ONLY,
});
},
Expand Down
Loading

0 comments on commit 5100f2a

Please sign in to comment.