File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,9 @@ function IgnoredPaths(options) {
114
114
addPattern ( this . ig . default , [ ".*" , "!../" ] ) ;
115
115
}
116
116
117
- if ( options . ignore !== false ) {
118
-
119
- addPattern ( this . ig . default , this . defaultPatterns ) ;
117
+ addPattern ( this . ig . default , this . defaultPatterns ) ;
120
118
119
+ if ( options . ignore !== false ) {
121
120
var ignorePath ;
122
121
123
122
if ( options . ignorePattern ) {
Original file line number Diff line number Diff line change @@ -367,10 +367,10 @@ describe("IgnoredPaths", function() {
367
367
assert . isTrue ( ignoredPaths . contains ( getFixturePath ( "node_modules/package/file.js" ) ) ) ;
368
368
} ) ;
369
369
370
- it ( "should not apply defaultPatterns if ignore option is is false" , function ( ) {
370
+ it ( "should still apply defaultPatterns if ignore option is is false" , function ( ) {
371
371
var ignoredPaths = new IgnoredPaths ( { ignore : false , cwd : getFixturePath ( ) } ) ;
372
- assert . isFalse ( ignoredPaths . contains ( getFixturePath ( "bower_components/package/file.js" ) ) ) ;
373
- assert . isFalse ( ignoredPaths . contains ( getFixturePath ( "node_modules/package/file.js" ) ) ) ;
372
+ assert . isTrue ( ignoredPaths . contains ( getFixturePath ( "bower_components/package/file.js" ) ) ) ;
373
+ assert . isTrue ( ignoredPaths . contains ( getFixturePath ( "node_modules/package/file.js" ) ) ) ;
374
374
} ) ;
375
375
376
376
it ( "should not ignore files in defaultPatterns within a subdirectory" , function ( ) {
You can’t perform that action at this time.
0 commit comments