8
0
Просмотр исходного кода

Fixed an override reversion that would not take place in case of test failure.

fredck 11 лет назад
Родитель
Сommit
758b958c6e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tests/ckeditor/ckeditor.js

+ 2 - 2
tests/ckeditor/ckeditor.js

@@ -33,10 +33,10 @@ describe( 'getPluginPath()', function() {
 			var basePath = CKEDITOR.basePath;
 			var path = CKEDITOR.getPluginPath( 'test' );
 
-			expect( path ).to.equal( basePath + 'plugins/test/' );
-
+			// Revert the override before assertions or it will not do it in case of errors.
 			CKEDITOR.getPluginPath = originalGetPluginPath;
 
+			expect( path ).to.equal( basePath + 'plugins/test/' );
 			done();
 		} );
 	} );