diff --git a/tests/unit/editor/editor-events-test.js b/tests/unit/editor/editor-events-test.js
index 00117e27f..8a7342396 100644
--- a/tests/unit/editor/editor-events-test.js
+++ b/tests/unit/editor/editor-events-test.js
@@ -184,7 +184,7 @@ test('postDidChange callback fired when card payload changes', (assert) => {
return $('
simple-card (edit)
')[0];
}
}];
- editor = Helpers.mobiledoc.renderInto(editorElement, ({post, cardSection}) => {
+ let editor = Helpers.mobiledoc.renderInto(editorElement, ({post, cardSection}) => {
return post([cardSection('simple-card')]);
}, { cards });
@@ -205,6 +205,8 @@ test('postDidChange callback fired when card payload changes', (assert) => {
postDidChange = 0;
env.remove();
assert.equal(postDidChange, 1, 'postDidChange called after remove');
+
+ editor.destroy();
});
test('inputModeDidChange callback fired when markup is toggled and there is a selection', (assert) => {
diff --git a/tests/unit/editor/editor-test.js b/tests/unit/editor/editor-test.js
index 4b759f5b7..7fb563df0 100644
--- a/tests/unit/editor/editor-test.js
+++ b/tests/unit/editor/editor-test.js
@@ -308,7 +308,7 @@ test('editor parses HTML post using parser plugins', (assert) => {
seenTagNames.push(element.tagName);
};
let html = '';
- let editor = new Editor({html, parserPlugins: [parserPlugin]});
+ editor = new Editor({html, parserPlugins: [parserPlugin]});
assert.ok(!!editor.post, 'editor loads post');
assert.deepEqual(seenTagNames, ['TEXTAREA', 'IMG']);