wip; tests passing
This commit is contained in:
+1
-3
@@ -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**');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user