8
0
Просмотр исходного кода

Require is not more needed when tests are running via Gulp.

These lines were needed when unit tests was running via npm scripts.
When units are running via Gulp, all tasks are registred before tests.

Also removed npm scripts.
Kamil Piechaczek 9 лет назад
Родитель
Сommit
fc51a6a211
3 измененных файлов с 0 добавлено и 6 удалено
  1. 0 1
      dev/tests/dev/status.js
  2. 0 1
      dev/tests/dev/update.js
  3. 0 4
      package.json

+ 0 - 1
dev/tests/dev/status.js

@@ -7,7 +7,6 @@
 
 
 'use strict';
 'use strict';
 
 
-require( '../../tasks/dev/tasks' )( {} );
 const sinon = require( 'sinon' );
 const sinon = require( 'sinon' );
 const tools = require( '../../tasks/dev/utils/tools' );
 const tools = require( '../../tasks/dev/utils/tools' );
 const git = require( '../../tasks/dev/utils/git' );
 const git = require( '../../tasks/dev/utils/git' );

+ 0 - 1
dev/tests/dev/update.js

@@ -7,7 +7,6 @@
 
 
 'use strict';
 'use strict';
 
 
-require( '../../tasks/dev/tasks' )( {} );
 const sinon = require( 'sinon' );
 const sinon = require( 'sinon' );
 const tools = require( '../../tasks/dev/utils/tools' );
 const tools = require( '../../tasks/dev/utils/tools' );
 const git = require( '../../tasks/dev/utils/git' );
 const git = require( '../../tasks/dev/utils/git' );

+ 0 - 4
package.json

@@ -87,9 +87,5 @@
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",
     "url": "https://github.com/ckeditor/ckeditor5.git"
     "url": "https://github.com/ckeditor/ckeditor5.git"
-  },
-  "scripts": {
-    "test": "mocha dev/tests --recursive",
-    "coverage": "istanbul cover _mocha dev/tests/ -- --recursive"
   }
   }
 }
 }