瀏覽代碼

Tests: Properly use sinon sandbox in tests.

Maciej Gołaszewski 7 年之前
父節點
當前提交
141e1dd60a
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      packages/ckeditor5-heading/tests/headingui.js
  2. 2 2
      packages/ckeditor5-heading/tests/utils.js

+ 2 - 2
packages/ckeditor5-heading/tests/headingui.js

@@ -14,11 +14,11 @@ import { add as addTranslations, _clear as clearTranslations } from '@ckeditor/c
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import { setData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
-testUtils.createSinonSandbox();
-
 describe( 'HeadingUI', () => {
 	let editor, editorElement, dropdown;
 
+	testUtils.createSinonSandbox();
+
 	before( () => {
 		addTranslations( 'en', {
 			'Choose heading': 'Choose heading',

+ 2 - 2
packages/ckeditor5-heading/tests/utils.js

@@ -11,9 +11,9 @@ import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import Heading from '../src/heading';
 import { getLocalizedOptions } from '../src/utils';
 
-testUtils.createSinonSandbox();
-
 describe( 'utils', () => {
+	testUtils.createSinonSandbox();
+
 	describe( 'getLocalizedOptions()', () => {
 		let editor, editorElement;