Przeglądaj źródła

Tests: Properly use sinon sandbox in tests.

Maciej Gołaszewski 7 lat temu
rodzic
commit
26575a2247

+ 2 - 2
packages/ckeditor5-highlight/tests/highlightui.js

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