|
@@ -5,11 +5,11 @@
|
|
|
|
|
|
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
|
|
-var modules = bender.amd.require( 'ckeditor', 'ckeditor-core' );
|
|
|
|
|
|
|
+const modules = bender.amd.require( 'ckeditor', 'ckeditor-core' );
|
|
|
|
|
|
|
|
describe( 'getPluginPath()', function() {
|
|
describe( 'getPluginPath()', function() {
|
|
|
it( 'should return a proper path', function() {
|
|
it( 'should return a proper path', function() {
|
|
|
- var CKEDITOR = modules.ckeditor;
|
|
|
|
|
|
|
+ const CKEDITOR = modules.ckeditor;
|
|
|
|
|
|
|
|
var basePath = CKEDITOR.basePath;
|
|
var basePath = CKEDITOR.basePath;
|
|
|
var path = CKEDITOR.getPluginPath( 'test' );
|
|
var path = CKEDITOR.getPluginPath( 'test' );
|
|
@@ -22,7 +22,7 @@ describe( 'getPluginPath()', function() {
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
it( '(the production version) should work even when in dev', function() {
|
|
it( '(the production version) should work even when in dev', function() {
|
|
|
- var CKEDITOR = modules.ckeditor;
|
|
|
|
|
|
|
+ const CKEDITOR = modules.ckeditor;
|
|
|
var core = modules[ 'ckeditor-core' ];
|
|
var core = modules[ 'ckeditor-core' ];
|
|
|
|
|
|
|
|
// To be able to run this test on both dev and production code, we need to override getPluginPath with the
|
|
// To be able to run this test on both dev and production code, we need to override getPluginPath with the
|
|
@@ -43,7 +43,7 @@ describe( 'getPluginPath()', function() {
|
|
|
|
|
|
|
|
describe( 'isDebug', function() {
|
|
describe( 'isDebug', function() {
|
|
|
it( 'is a boolean', function() {
|
|
it( 'is a boolean', function() {
|
|
|
- var CKEDITOR = modules.ckeditor;
|
|
|
|
|
|
|
+ const CKEDITOR = modules.ckeditor;
|
|
|
|
|
|
|
|
expect( CKEDITOR.isDebug ).to.be.a( 'boolean' );
|
|
expect( CKEDITOR.isDebug ).to.be.a( 'boolean' );
|
|
|
} );
|
|
} );
|