Forráskód Böngészése

Merge branch t/ckeditor5/1144

Tests: Properly use sinon sandbox in tests t/ckeditor5/1144.
Oskar Wróbel 7 éve
szülő
commit
6e7618702f

+ 2 - 2
packages/ckeditor5-editor-decoupled/tests/decouplededitor.js

@@ -19,13 +19,13 @@ import RootElement from '@ckeditor/ckeditor5-engine/src/model/rootelement';
 
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
-testUtils.createSinonSandbox();
-
 const editorData = '<p><strong>foo</strong> bar</p>';
 
 describe( 'DecoupledEditor', () => {
 	let editor;
 
+	testUtils.createSinonSandbox();
+
 	describe( 'constructor()', () => {
 		beforeEach( () => {
 			editor = new DecoupledEditor();

+ 2 - 2
packages/ckeditor5-editor-decoupled/tests/decouplededitorui.js

@@ -16,11 +16,11 @@ import { keyCodes } from '@ckeditor/ckeditor5-utils/src/keyboard';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import utils from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
 
-testUtils.createSinonSandbox();
-
 describe( 'DecoupledEditorUI', () => {
 	let editor, view, ui;
 
+	testUtils.createSinonSandbox();
+
 	beforeEach( () => {
 		return VirtualDecoupledTestEditor
 			.create( {