Skip to content

Commit 22fcdba

Browse files
author
Gabriel Schulhof
committed
Gruntfile.js: Prepend "tests/" even if grunt option "--types" is not on
Fixes jquery-archivegh-6969
1 parent 66404fd commit 22fcdba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Gruntfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,10 +693,10 @@ module.exports = function( grunt ) {
693693
// Remove negations from list of suites
694694
suites = _.filter( suites, function( suite ) { return ( !/^!/.test( suite ) ); } );
695695

696-
if( types.length ){
696+
if ( types.length ){
697697
testDirs = [];
698698
types.forEach(function( type ) {
699-
testDirs.push( "tests/" + type );
699+
testDirs.push( type );
700700
});
701701
}
702702

@@ -710,6 +710,7 @@ module.exports = function( grunt ) {
710710
.difference( excludes )
711711
.forEach( function( suite ) {
712712
testDirs.forEach( function( dir ) {
713+
dir = "tests/" + dir;
713714
patterns = patterns.concat([
714715
dir + "/" + suite + "/index.html",
715716
dir + "/" + suite + "/*/index.html",

0 commit comments

Comments
 (0)