Browse Source

Adjusted paths in cjs test utils.

Szymon Kupś 9 years ago
parent
commit
de0606ff09
2 changed files with 5 additions and 5 deletions
  1. 3 3
      tests/utils-tests/module__cjs.js
  2. 2 2
      tests/_utils/module__cjs.js

+ 3 - 3
tests/utils-tests/module__cjs.js

@@ -7,13 +7,13 @@
 
 'use strict';
 
-import testUtils from '/tests/_utils/utils.js';
-import moduleTestUtils from '/tests/_utils/module.js';
+import testUtils from '/tests/ckeditor5/_utils/utils.js';
+import moduleTestUtils from '/tests/ckeditor5/_utils/module.js';
 
 testUtils.createSinonSandbox();
 
 const path = require( 'path' );
-const cjsDir = path.join( process.cwd(), 'dist', 'cjs' );
+const cjsDir = path.join( process.cwd(), 'build', 'cjs' );
 
 describe( 'module utilities', () => {
 	const getModulePath = moduleTestUtils.getModulePath;

+ 2 - 2
tests/_utils/module__cjs.js

@@ -35,14 +35,14 @@ const utils = {
 	getModulePath( modulePath ) {
 		// Do nothing – path is already absolute.
 		if ( modulePath.startsWith( '/' ) ) {
-			return path.join( process.cwd(), 'dist', 'cjs', modulePath );
+			return path.join( process.cwd(), 'build', 'cjs', modulePath );
 		}
 
 		if ( modulePath.indexOf( '/' ) < 0 ) {
 			modulePath = modulePath + '/' + modulePath;
 		}
 
-		return path.join( process.cwd(), 'dist', 'cjs', 'ckeditor5', modulePath + '.js' );
+		return path.join( process.cwd(), 'build', 'cjs', 'ckeditor5', modulePath + '.js' );
 	},
 
 	/**