|
1 |
| -import {Block} from "@blocknote/core"; |
2 |
| -import {afterEach, beforeEach, describe, expect, it} from "vitest"; |
3 |
| -import { BlockNoteEditor } from "../src"; |
4 |
| -import UniqueID from "../src/extensions/UniqueID/UniqueID"; |
| 1 | +import { afterEach, beforeEach, describe, expect, it } from "vitest"; |
| 2 | +import { Block, BlockNoteEditor } from "../.."; |
| 3 | +import UniqueID from "../../extensions/UniqueID/UniqueID"; |
5 | 4 |
|
6 | 5 | let editor: BlockNoteEditor;
|
7 | 6 |
|
@@ -173,15 +172,15 @@ Paragraph
|
173 | 172 | ],
|
174 | 173 | },
|
175 | 174 | ];
|
176 |
| -// nestedHTML = `<h1>Heading</h1><p>Paragraph</p><ul><li><p>Bullet List Item</p><ol><li><p>Numbered List Item</p></li></ol></li></ul>`; |
177 |
| -// nestedMarkdown = `# Heading |
178 |
| -// |
179 |
| -// Paragraph |
180 |
| -// |
181 |
| -// * Bullet List Item |
182 |
| -// |
183 |
| -// 1. Numbered List Item |
184 |
| -// `; |
| 175 | + // nestedHTML = `<h1>Heading</h1><p>Paragraph</p><ul><li><p>Bullet List Item</p><ol><li><p>Numbered List Item</p></li></ol></li></ul>`; |
| 176 | + // nestedMarkdown = `# Heading |
| 177 | + // |
| 178 | + // Paragraph |
| 179 | + // |
| 180 | + // * Bullet List Item |
| 181 | + // |
| 182 | + // 1. Numbered List Item |
| 183 | + // `; |
185 | 184 |
|
186 | 185 | styledBlocks = [
|
187 | 186 | {
|
@@ -627,48 +626,48 @@ Paragraph
|
627 | 626 | },
|
628 | 627 | ];
|
629 | 628 |
|
630 |
| -// complexHTML = `<h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><p><span data-text-color="purple"><span data-background-color="green">Paragraph</span></span></p><p>P<strong>ara</strong><em>grap</em>h</p><p>P<u>ara</u><s>grap</s>h</p><ul><li><p>Bullet List Item</p></li><li><p>Bullet List Item</p><ul><li><p>Bullet List Item</p><ul><li><p>Bullet List Item</p></li></ul><p>Paragraph</p><ol><li><p>Numbered List Item</p></li><li><p>Numbered List Item</p></li><li><p>Numbered List Item</p><ol><li><p>Numbered List Item</p></li></ol></li></ol><ul><li><p>Bullet List Item</p></li></ul></li><li><p>Bullet List Item</p></li></ul></li><li><p>Bullet List Item</p></li></ul>`; |
631 |
| -// complexMarkdown = `# Heading 1 |
632 |
| -// |
633 |
| -// ## Heading 2 |
634 |
| -// |
635 |
| -// ### Heading 3 |
636 |
| -// |
637 |
| -// Paragraph |
638 |
| -// |
639 |
| -// P**ara***grap*h |
640 |
| -// |
641 |
| -// P*ara*~~grap~~h |
642 |
| -// |
643 |
| -// * Bullet List Item |
644 |
| -// |
645 |
| -// * Bullet List Item |
646 |
| -// |
647 |
| -// * Bullet List Item |
648 |
| -// |
649 |
| -// * Bullet List Item |
650 |
| -// |
651 |
| -// Paragraph |
652 |
| -// |
653 |
| -// 1. Numbered List Item |
654 |
| -// |
655 |
| -// 2. Numbered List Item |
656 |
| -// |
657 |
| -// 3. Numbered List Item |
658 |
| -// |
659 |
| -// 1. Numbered List Item |
660 |
| -// |
661 |
| -// * Bullet List Item |
662 |
| -// |
663 |
| -// * Bullet List Item |
664 |
| -// |
665 |
| -// * Bullet List Item |
666 |
| -// `; |
| 629 | + // complexHTML = `<h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><p><span data-text-color="purple"><span data-background-color="green">Paragraph</span></span></p><p>P<strong>ara</strong><em>grap</em>h</p><p>P<u>ara</u><s>grap</s>h</p><ul><li><p>Bullet List Item</p></li><li><p>Bullet List Item</p><ul><li><p>Bullet List Item</p><ul><li><p>Bullet List Item</p></li></ul><p>Paragraph</p><ol><li><p>Numbered List Item</p></li><li><p>Numbered List Item</p></li><li><p>Numbered List Item</p><ol><li><p>Numbered List Item</p></li></ol></li></ol><ul><li><p>Bullet List Item</p></li></ul></li><li><p>Bullet List Item</p></li></ul></li><li><p>Bullet List Item</p></li></ul>`; |
| 630 | + // complexMarkdown = `# Heading 1 |
| 631 | + // |
| 632 | + // ## Heading 2 |
| 633 | + // |
| 634 | + // ### Heading 3 |
| 635 | + // |
| 636 | + // Paragraph |
| 637 | + // |
| 638 | + // P**ara***grap*h |
| 639 | + // |
| 640 | + // P*ara*~~grap~~h |
| 641 | + // |
| 642 | + // * Bullet List Item |
| 643 | + // |
| 644 | + // * Bullet List Item |
| 645 | + // |
| 646 | + // * Bullet List Item |
| 647 | + // |
| 648 | + // * Bullet List Item |
| 649 | + // |
| 650 | + // Paragraph |
| 651 | + // |
| 652 | + // 1. Numbered List Item |
| 653 | + // |
| 654 | + // 2. Numbered List Item |
| 655 | + // |
| 656 | + // 3. Numbered List Item |
| 657 | + // |
| 658 | + // 1. Numbered List Item |
| 659 | + // |
| 660 | + // * Bullet List Item |
| 661 | + // |
| 662 | + // * Bullet List Item |
| 663 | + // |
| 664 | + // * Bullet List Item |
| 665 | + // `; |
667 | 666 | });
|
668 | 667 |
|
669 | 668 | afterEach(() => {
|
670 |
| - editor._tiptapEditor.destroy() |
671 |
| - editor = undefined; |
| 669 | + editor._tiptapEditor.destroy(); |
| 670 | + editor = undefined as any; |
672 | 671 |
|
673 | 672 | delete (window as Window & { __TEST_OPTIONS?: {} }).__TEST_OPTIONS;
|
674 | 673 | });
|
|
0 commit comments