浏览代码

Tests: Minor improvements.

Piotrek Koszuliński 10 年之前
父节点
当前提交
961b576740
共有 3 个文件被更改,包括 10 次插入8 次删除
  1. 8 7
      dev/tasks/tests/dev-tasks.js
  2. 1 0
      gruntfile.js
  3. 1 1
      package.json

+ 8 - 7
dev/tasks/tests/dev-tasks.js

@@ -6,6 +6,7 @@
 /* global describe, it, beforeEach, afterEach */
 /* global describe, it, beforeEach, afterEach */
 
 
 'use strict';
 'use strict';
+
 const chai = require( 'chai' );
 const chai = require( 'chai' );
 const sinon = require( 'sinon' );
 const sinon = require( 'sinon' );
 const expect = chai.expect;
 const expect = chai.expect;
@@ -60,7 +61,7 @@ describe( 'dev-tasks', () => {
 	describe( 'dev-init', () => {
 	describe( 'dev-init', () => {
 		const initTask = require( '../utils/dev-init' );
 		const initTask = require( '../utils/dev-init' );
 
 
-		it( 'task should exists', () => expect( initTask ).to.be.a( 'function' ) );
+		it( 'task should exist', () => expect( initTask ).to.be.a( 'function' ) );
 
 
 		it( 'performs no action when no ckeditor dependencies are found', () => {
 		it( 'performs no action when no ckeditor dependencies are found', () => {
 			const packageJSON = {
 			const packageJSON = {
@@ -139,7 +140,7 @@ describe( 'dev-tasks', () => {
 		const pluginCreateTask = require( '../utils/dev-plugin-create' );
 		const pluginCreateTask = require( '../utils/dev-plugin-create' );
 		const repositoryPath = path.join( workspacePath, pluginName );
 		const repositoryPath = path.join( workspacePath, pluginName );
 
 
-		it( 'should exists', () => expect( pluginCreateTask ).to.be.a( 'function' ) );
+		it( 'should exist', () => expect( pluginCreateTask ).to.be.a( 'function' ) );
 
 
 		it( 'should create a plugin', () => {
 		it( 'should create a plugin', () => {
 			return pluginCreateTask( mainRepositoryPath, workspaceRoot, emptyFn ).then( () => {
 			return pluginCreateTask( mainRepositoryPath, workspaceRoot, emptyFn ).then( () => {
@@ -170,7 +171,7 @@ describe( 'dev-tasks', () => {
 	describe( 'dev-plugin-install', () => {
 	describe( 'dev-plugin-install', () => {
 		const pluginInstallTask = require( '../utils/dev-plugin-install' );
 		const pluginInstallTask = require( '../utils/dev-plugin-install' );
 
 
-		it( 'should exists', () => expect( pluginInstallTask ).to.be.a( 'function' ) );
+		it( 'should exist', () => expect( pluginInstallTask ).to.be.a( 'function' ) );
 
 
 		it( 'should install a plugin', () => {
 		it( 'should install a plugin', () => {
 			return pluginInstallTask( mainRepositoryPath, workspaceRoot, emptyFn ).then( () => {
 			return pluginInstallTask( mainRepositoryPath, workspaceRoot, emptyFn ).then( () => {
@@ -201,7 +202,7 @@ describe( 'dev-tasks', () => {
 	describe( 'dev-relink', () => {
 	describe( 'dev-relink', () => {
 		const devRelinkTask = require( '../utils/dev-relink' );
 		const devRelinkTask = require( '../utils/dev-relink' );
 
 
-		it( 'should exists', () => expect( devRelinkTask ).to.be.a( 'function' ) );
+		it( 'should exist', () => expect( devRelinkTask ).to.be.a( 'function' ) );
 
 
 		it( 'should relink repositories', () => {
 		it( 'should relink repositories', () => {
 			const packageJSON = {
 			const packageJSON = {
@@ -231,7 +232,7 @@ describe( 'dev-tasks', () => {
 	describe( 'dev-status', () => {
 	describe( 'dev-status', () => {
 		const devStatusTask = require( '../utils/dev-status' );
 		const devStatusTask = require( '../utils/dev-status' );
 
 
-		it( 'should exists', () => expect( devStatusTask ).to.be.a( 'function' ) );
+		it( 'should exist', () => expect( devStatusTask ).to.be.a( 'function' ) );
 
 
 		it( 'should show repositories status', () => {
 		it( 'should show repositories status', () => {
 			const packageJSON = {
 			const packageJSON = {
@@ -259,7 +260,7 @@ describe( 'dev-tasks', () => {
 	describe( 'dev-update', () => {
 	describe( 'dev-update', () => {
 		const devUpdateTask = require( '../utils/dev-update' );
 		const devUpdateTask = require( '../utils/dev-update' );
 
 
-		it( 'should exists', () => expect( devUpdateTask ).to.be.a( 'function' ) );
+		it( 'should exist', () => expect( devUpdateTask ).to.be.a( 'function' ) );
 
 
 		it( 'should show repositories status', () => {
 		it( 'should show repositories status', () => {
 			const packageJSON = {
 			const packageJSON = {
@@ -294,7 +295,7 @@ describe( 'dev-tasks', () => {
 	describe( 'dev-boilerplate-update', () => {
 	describe( 'dev-boilerplate-update', () => {
 		const devBoilerplateTask = require( '../utils/dev-boilerplate-update' );
 		const devBoilerplateTask = require( '../utils/dev-boilerplate-update' );
 
 
-		it( 'should exists', () => expect( devBoilerplateTask ).to.be.a( 'function' ) );
+		it( 'should exist', () => expect( devBoilerplateTask ).to.be.a( 'function' ) );
 
 
 		it( 'should update boilerplate in repositories', () => {
 		it( 'should update boilerplate in repositories', () => {
 			const packageJSON = {
 			const packageJSON = {

+ 1 - 0
gruntfile.js

@@ -1,6 +1,7 @@
 /* jshint node: true, esnext: true, varstmt: true */
 /* jshint node: true, esnext: true, varstmt: true */
 
 
 'use strict';
 'use strict';
+
 const tools = require( './dev/tasks/utils/tools' );
 const tools = require( './dev/tasks/utils/tools' );
 
 
 module.exports = ( grunt ) => {
 module.exports = ( grunt ) => {

+ 1 - 1
package.json

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