add first test with jest

This commit is contained in:
Philipp Kühn
2018-11-09 23:01:23 +01:00
parent 181cebc8f2
commit 35880251cd
6 changed files with 1115 additions and 41 deletions

View File

@@ -26,6 +26,7 @@ export default class Editor {
setOptions(options) {
const defaultOptions = {
editable: true,
extensions: [],
content: '',
onUpdate: () => {},
}

View File

@@ -0,0 +1,7 @@
import Editor from './Editor'
test('can create editor', () => {
const editor = new Editor()
expect(editor).toBeDefined()
})