瀏覽代碼

Merge branch t/ckeditor5/1144

Tests: Properly use sinon sandbox in tests t/ckeditor5/1144.
Oskar Wróbel 7 年之前
父節點
當前提交
8bf3dcfdb4

+ 2 - 2
packages/ckeditor5-font/tests/fontfamily/fontfamilyui.js

@@ -14,11 +14,11 @@ import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictest
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import { add as addTranslations, _clear as clearTranslations } from '@ckeditor/ckeditor5-utils/src/translation-service';
 
-testUtils.createSinonSandbox();
-
 describe( 'FontFamilyUI', () => {
 	let editor, command, element;
 
+	testUtils.createSinonSandbox();
+
 	before( () => {
 		addTranslations( 'en', {
 			'Font Family': 'Font Family',

+ 2 - 2
packages/ckeditor5-font/tests/fontsize/fontsizeui.js

@@ -15,11 +15,11 @@ import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import { _clear as clearTranslations, add as addTranslations } from '@ckeditor/ckeditor5-utils/src/translation-service';
 import { normalizeOptions } from '../../src/fontsize/utils';
 
-testUtils.createSinonSandbox();
-
 describe( 'FontSizeUI', () => {
 	let editor, command, element;
 
+	testUtils.createSinonSandbox();
+
 	before( () => {
 		addTranslations( 'en', {
 			'Font Size': 'Font Size',