8
0
Эх сурвалжийг харах

Merge branch t/ckeditor5/1144

Tests: Properly use sinon sandbox in tests t/ckeditor5/1144.
Oskar Wróbel 7 жил өмнө
parent
commit
9d5924cb63

+ 2 - 2
packages/ckeditor5-autoformat/tests/autoformat.js

@@ -21,11 +21,11 @@ import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
 import HeadingCommand from '@ckeditor/ckeditor5-heading/src/headingcommand';
 
-testUtils.createSinonSandbox();
-
 describe( 'Autoformat', () => {
 	let editor, model, doc;
 
+	testUtils.createSinonSandbox();
+
 	beforeEach( () => {
 		return VirtualTestEditor
 			.create( {

+ 2 - 2
packages/ckeditor5-autoformat/tests/blockautoformatediting.js

@@ -11,11 +11,11 @@ import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-testUtils.createSinonSandbox();
-
 describe( 'BlockAutoformatEditing', () => {
 	let editor, model, doc;
 
+	testUtils.createSinonSandbox();
+
 	beforeEach( () => {
 		return VirtualTestEditor
 			.create( {

+ 2 - 2
packages/ckeditor5-autoformat/tests/inlineautoformatediting.js

@@ -10,11 +10,11 @@ import Enter from '@ckeditor/ckeditor5-enter/src/enter';
 import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
-testUtils.createSinonSandbox();
-
 describe( 'InlineAutoformatEditing', () => {
 	let editor, model, doc;
 
+	testUtils.createSinonSandbox();
+
 	beforeEach( () => {
 		return VirtualTestEditor
 			.create( {

+ 2 - 2
packages/ckeditor5-autoformat/tests/undointegration.js

@@ -20,11 +20,11 @@ import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtest
 import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
-testUtils.createSinonSandbox();
-
 describe( 'Autoformat', () => {
 	let editor, model, doc;
 
+	testUtils.createSinonSandbox();
+
 	beforeEach( () => {
 		return VirtualTestEditor
 			.create( {