浏览代码

Moved Node.JS tests to dev/tests/.

Piotrek Koszuliński 10 年之前
父节点
当前提交
98c26eef2c
共有 4 个文件被更改,包括 14 次插入14 次删除
  1. 10 10
      dev/tasks/tests/dev-tasks.js
  2. 2 2
      dev/tasks/tests/git.js
  3. 1 1
      dev/tasks/tests/tools.js
  4. 1 1
      package.json

+ 10 - 10
dev/tasks/tests/dev-tasks.js

@@ -10,9 +10,9 @@
 const chai = require( 'chai' );
 const sinon = require( 'sinon' );
 const expect = chai.expect;
-const tools = require( '../utils/tools' );
-const inquiries = require( '../utils/inquiries' );
-const git = require( '../utils/git' );
+const tools = require( '../tasks/utils/tools' );
+const inquiries = require( '../tasks/utils/inquiries' );
+const git = require( '../tasks/utils/git' );
 const path = require( 'path' );
 const emptyFn = () => { };
 let spies;
@@ -59,7 +59,7 @@ describe( 'dev-tasks', () => {
 	}
 
 	describe( 'dev-init', () => {
-		const initTask = require( '../utils/dev-init' );
+		const initTask = require( '../tasks/utils/dev-init' );
 
 		it( 'task should exist', () => expect( initTask ).to.be.a( 'function' ) );
 
@@ -137,7 +137,7 @@ describe( 'dev-tasks', () => {
 	} );
 
 	describe( 'dev-plugin-create', () => {
-		const pluginCreateTask = require( '../utils/dev-plugin-create' );
+		const pluginCreateTask = require( '../tasks/utils/dev-plugin-create' );
 		const repositoryPath = path.join( workspacePath, pluginName );
 
 		it( 'should exist', () => expect( pluginCreateTask ).to.be.a( 'function' ) );
@@ -169,7 +169,7 @@ describe( 'dev-tasks', () => {
 	} );
 
 	describe( 'dev-plugin-install', () => {
-		const pluginInstallTask = require( '../utils/dev-plugin-install' );
+		const pluginInstallTask = require( '../tasks/utils/dev-plugin-install' );
 
 		it( 'should exist', () => expect( pluginInstallTask ).to.be.a( 'function' ) );
 
@@ -200,7 +200,7 @@ describe( 'dev-tasks', () => {
 	} );
 
 	describe( 'dev-relink', () => {
-		const devRelinkTask = require( '../utils/dev-relink' );
+		const devRelinkTask = require( '../tasks/utils/dev-relink' );
 
 		it( 'should exist', () => expect( devRelinkTask ).to.be.a( 'function' ) );
 
@@ -230,7 +230,7 @@ describe( 'dev-tasks', () => {
 	} );
 
 	describe( 'dev-status', () => {
-		const devStatusTask = require( '../utils/dev-status' );
+		const devStatusTask = require( '../tasks/utils/dev-status' );
 
 		it( 'should exist', () => expect( devStatusTask ).to.be.a( 'function' ) );
 
@@ -258,7 +258,7 @@ describe( 'dev-tasks', () => {
 	} );
 
 	describe( 'dev-update', () => {
-		const devUpdateTask = require( '../utils/dev-update' );
+		const devUpdateTask = require( '../tasks/utils/dev-update' );
 
 		it( 'should exist', () => expect( devUpdateTask ).to.be.a( 'function' ) );
 
@@ -293,7 +293,7 @@ describe( 'dev-tasks', () => {
 	} );
 
 	describe( 'dev-boilerplate-update', () => {
-		const devBoilerplateTask = require( '../utils/dev-boilerplate-update' );
+		const devBoilerplateTask = require( '../tasks/utils/dev-boilerplate-update' );
 
 		it( 'should exist', () => expect( devBoilerplateTask ).to.be.a( 'function' ) );
 

+ 2 - 2
dev/tasks/tests/git.js

@@ -8,10 +8,10 @@
 'use strict';
 
 let toRestore;
-const git = require( '../utils/git' );
+const git = require( '../tasks/utils/git' );
 const chai = require( 'chai' );
 const sinon = require( 'sinon' );
-const tools = require( '../utils/tools' );
+const tools = require( '../tasks/utils/tools' );
 const expect = chai.expect;
 
 describe( 'utils', () => {

+ 1 - 1
dev/tasks/tests/tools.js

@@ -10,7 +10,7 @@
 const chai = require( 'chai' );
 const sinon = require( 'sinon' );
 const expect = chai.expect;
-const tools = require( '../utils/tools' );
+const tools = require( '../tasks/utils/tools' );
 const path = require( 'path' );
 const fs = require( 'fs' );
 let toRestore;

+ 1 - 1
package.json

@@ -43,6 +43,6 @@
     "url": "https://github.com/ckeditor/ckeditor5.git"
   },
   "scripts": {
-    "tests": "mocha dev/tasks/tests"
+    "tests": "mocha dev/tests"
   }
 }