Skip to content

Commit

Permalink
Remove some uneeded code from setup.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nmielnik committed Feb 9, 2016
1 parent 75a9e53 commit 0d3e955
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions spec/setup.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,11 @@ describe('Setup/Destroy TestCase', function () {
it('should work with multiple elements of the same class', function () {
var editor,
el,
elements = [],
i;

for (i = 0; i < 3; i += 1) {
el = document.createElement('div');
el.className = 'editor';
el = this.createElement('div', 'editor');
el.textContent = i;
elements.push(
document.body.appendChild(el)
);
}

editor = this.newMediumEditor('.editor');
Expand All @@ -119,10 +114,6 @@ describe('Setup/Destroy TestCase', function () {

selectElementContentsAndFire(editor.elements[2]);
expect(toolbar.hideToolbar).not.toHaveBeenCalled();

elements.forEach(function (element) {
document.body.removeChild(element);
});
});

// regression test for https://github.com/yabwe/medium-editor/issues/197
Expand Down

0 comments on commit 0d3e955

Please sign in to comment.