소스 검색

Merge branch t/ckeditor5/1144

Tests: Properly use sinon sandbox in tests t/ckeditor5/1144.
Oskar Wróbel 7 년 전
부모
커밋
6e7618702f
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      packages/ckeditor5-editor-decoupled/tests/decouplededitor.js
  2. 2 2
      packages/ckeditor5-editor-decoupled/tests/decouplededitorui.js

+ 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( {