mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #5886 from javorszky/iss_5885
Make grunt test fail if no filename provided
This commit is contained in:
commit
b0f6a15433
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ var _ = require('lodash'),
|
|||
|
||||
grunt.registerTask('test', function (test) {
|
||||
if (!test) {
|
||||
grunt.log.write('no test provided');
|
||||
grunt.fail.fatal('No test provided. `grunt test` expects a filename. e.g.: `grunt test:unit/apps_spec.js`. Did you mean `npm test` or `grunt validate`?');
|
||||
}
|
||||
|
||||
grunt.task.run('test-setup', 'shell:test:' + test);
|
||||
|
|
Loading…
Reference in a new issue