Skip to content

Commit

Permalink
skip the case that is not of cross-platform consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Aug 29, 2017
1 parent c37bc69 commit 11f4a99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ node_js:
- "6"
- "7"
- "8"
before_install:
- git --version
10 changes: 8 additions & 2 deletions test/ignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ var cases = [
'cde ': 1,
'cde ': 0,
'cde ': 0
}
},
false,
true
],
[
'An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again',
Expand Down Expand Up @@ -587,6 +589,7 @@ describe("cases", function() {
var description = c[0]
var patterns = c[1]
var paths_object = c[2]
var skip_test_test = c[4]

if (typeof patterns === 'string') {
patterns = readPatterns(patterns)
Expand Down Expand Up @@ -640,8 +643,11 @@ describe("cases", function() {
})


// In some platform, the behavior of git command about trailing spaces
// is not implemented as documented, so skip test
!skip_test_test
// Tired to handle test cases for test cases for windows
!IS_WINDOWS
&& !IS_WINDOWS
// `git check-ignore` could only handles non-empty filenames
&& paths.some(Boolean)
// `git check-ignore` will by default ignore .git/ directory
Expand Down

0 comments on commit 11f4a99

Please sign in to comment.