wip; tests passing

This commit is contained in:
evilchili
2026-05-15 14:34:20 -07:00
parent 9748d12ede
commit c61b8e2f8b
10 changed files with 110 additions and 585 deletions
+1 -3
View File
@@ -128,7 +128,7 @@ describe('RibbitEditor modes', () => {
editor.run();
editor.wysiwyg();
editor.view();
expect(modes).toEqual(['view', 'wysiwyg', 'edit', 'view']);
expect(modes).toEqual(['view', 'wysiwyg', 'view']);
});
});
@@ -231,9 +231,7 @@ describe('Editor htmlToMarkdown', () => {
it('returns markdown in view state', () => {
resetDOM('**bold**');
const editor = new lib.Editor({});
console.log(editor.getMarkdown());
editor.run();
console.log(editor.getMarkdown());
expect(editor.getMarkdown()).toBe('**bold**');
});