Ver Fonte

Moved the bender.amd.require() call out of describe().

fredck há 11 anos atrás
pai
commit
c15dbcdefb
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 2 2
      tests/ckeditor/basepath.js
  2. 2 2
      tests/ckeditor/ckeditor.js

+ 2 - 2
tests/ckeditor/basepath.js

@@ -7,6 +7,8 @@
 
 'use strict';
 
+var modules = bender.amd.require( 'ckeditor' );
+
 beforeEach( function() {
 	// Ensure that no CKEDITOR_BASEPATH global is available.
 	delete window.CKEDITOR_BASEPATH;
@@ -16,8 +18,6 @@ beforeEach( function() {
 } );
 
 describe( 'basePath', function() {
-	var modules = bender.amd.require( 'ckeditor' );
-
 	it( 'should work with script tags', function() {
 		var CKEDITOR = modules.ckeditor;
 

+ 2 - 2
tests/ckeditor/ckeditor.js

@@ -7,9 +7,9 @@
 
 'use strict';
 
-describe( 'getPluginPath()', function() {
-	var modules = bender.amd.require( 'ckeditor', 'ckeditor-core' );
+var modules = bender.amd.require( 'ckeditor', 'ckeditor-core' );
 
+describe( 'getPluginPath()', function() {
 	it( 'should return a proper path', function() {
 		var CKEDITOR = modules.ckeditor;