Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch t/ckeditor5/1144
Browse files Browse the repository at this point in the history
Tests: Properly use sinon sandbox in tests t/ckeditor5/1144.
  • Loading branch information
oskarwrobel committed Jul 10, 2018
2 parents ab8c1d9 + 3b7b313 commit 1911fa6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/linkui.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import Range from '@ckeditor/ckeditor5-engine/src/view/range';
import ClickObserver from '@ckeditor/ckeditor5-engine/src/view/observer/clickobserver';

testUtils.createSinonSandbox();

describe( 'LinkUI', () => {
let editor, linkUIFeature, linkButton, balloon, formView, actionsView, editorElement;

testUtils.createSinonSandbox();

beforeEach( () => {
editorElement = document.createElement( 'div' );
document.body.appendChild( editorElement );
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/linkactionsview.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import FocusCycler from '@ckeditor/ckeditor5-ui/src/focuscycler';
import ViewCollection from '@ckeditor/ckeditor5-ui/src/viewcollection';
import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';

testUtils.createSinonSandbox();

describe( 'LinkActionsView', () => {
let view;

testUtils.createSinonSandbox();

beforeEach( () => {
view = new LinkActionsView( { t: val => val } );
view.render();
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/linkformview.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import FocusCycler from '@ckeditor/ckeditor5-ui/src/focuscycler';
import ViewCollection from '@ckeditor/ckeditor5-ui/src/viewcollection';
import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';

testUtils.createSinonSandbox();

describe( 'LinkFormView', () => {
let view;

testUtils.createSinonSandbox();

beforeEach( () => {
view = new LinkFormView( { t: val => val } );
view.render();
Expand Down
4 changes: 2 additions & 2 deletions tests/unlinkcommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import UnlinkCommand from '../src/unlinkcommand';
import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';

testUtils.createSinonSandbox();

describe( 'UnlinkCommand', () => {
let editor, model, document, command;

testUtils.createSinonSandbox();

beforeEach( () => {
return ModelTestEditor.create()
.then( newEditor => {
Expand Down

0 comments on commit 1911fa6

Please sign in to comment.