Skip to content

Commit

Permalink
Ensure that editor gets destroyed between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Aug 25, 2015
1 parent ba7f1b9 commit b1d58d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/editor/editor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ test('editor parses and renders mobiledoc format', (assert) => {

test('editor parses and renders html', (assert) => {
editorElement.innerHTML = '<p>something here</p>';
let editor = new Editor({html: '<p>hello world</p>'});
editor = new Editor({html: '<p>hello world</p>'});
editor.render(editorElement);

assert.equal(editorElement.innerHTML,
Expand All @@ -107,7 +107,7 @@ test('editor parses and renders html', (assert) => {

test('editor parses and renders DOM', (assert) => {
editorElement.innerHTML = '<p>something here</p>';
let editor = new Editor({html: $('<p>hello world</p>')[0]});
editor = new Editor({html: $('<p>hello world</p>')[0]});
editor.render(editorElement);

assert.equal(editorElement.innerHTML,
Expand Down

0 comments on commit b1d58d1

Please sign in to comment.