Skip to content

Commit

Permalink
Add test for issue codemix#9 - pattern matching is too greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Sep 7, 2015
1 parent eeb23b6 commit f74c300
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('gitignore parser', function () {
this.gitignore.accepts('test/index.js').should.be.true();
this.gitignore.accepts('wat/test/index.js').should.be.true();
this.gitignoreNoNegatives.accepts('test/index.js').should.be.true();
this.gitignoreNoNegatives.accepts('node_modules.json').should.be.true();
});

it('should not accept the given filenames', function () {
Expand Down Expand Up @@ -62,6 +63,7 @@ describe('gitignore parser', function () {
this.gitignore.denies('wat/test/index.js').should.be.false();
this.gitignoreNoNegatives.denies('test/index.js').should.be.false();
this.gitignoreNoNegatives.denies('wat/test/index.js').should.be.false();
this.gitignoreNoNegatives.denies('node_modules.json').should.be.false();
});

it('should deny the given directory', function () {
Expand Down

0 comments on commit f74c300

Please sign in to comment.