🐛 fix grunt test (#8266)

no issue

- it was not possible to run a single test in core/server/apps/.../tests
This commit is contained in:
Katharina Irrgang 2017-04-05 14:47:56 +02:00 committed by kirrg001
parent 9d020c93fc
commit 8f7ee82122

View File

@ -419,7 +419,7 @@ var overrides = require('./core/server/overrides'),
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`?');
}
if (!test.match(/core\/test/)) {
if (!test.match(/core\/test/) && !test.match(/core\/server/)) {
test = 'core/test/' + test;
}