Browse Source

Fix upcoming ESLint problems in tests.

Maciej Gołaszewski 5 years ago
parent
commit
5d2ac2ddb4

+ 1 - 0
packages/ckeditor5-core/tests/_utils/memory.js

@@ -147,6 +147,7 @@ function collectMemoryStats() {
 // 		google-chrome -js-flags="--expose-gc"
 //
 function skipIfNoGarbageCollector() {
+	// eslint-disable-next-line mocha/no-top-level-hooks
 	before( function() {
 		if ( !window.gc ) {
 			this.skip();

+ 1 - 0
packages/ckeditor5-core/tests/_utils/utils.js

@@ -34,6 +34,7 @@ const utils = {
 	 */
 
 	createSinonSandbox() {
+		// eslint-disable-next-line mocha/no-top-level-hooks
 		afterEach( () => {
 			utils.sinon.restore();
 		} );