Skip to content

Commit

Permalink
*.swp pattern should also apply to all subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Sep 7, 2015
1 parent 4430870 commit eeb23b6
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 @@ -27,6 +27,7 @@ describe('gitignore parser', function () {

it('should not accept the given filenames', function () {
this.gitignore.accepts('test.swp').should.be.false();
this.gitignore.accepts('foo/test.swp').should.be.false();
this.gitignore.accepts('node_modules/wat.js').should.be.false();
this.gitignore.accepts('foo/bar.wat').should.be.false();
this.gitignoreNoNegatives.accepts('node_modules/wat.js').should.be.false();
Expand All @@ -50,6 +51,7 @@ describe('gitignore parser', function () {
describe('denies()', function () {
it('should deny the given filenames', function () {
this.gitignore.denies('test.swp').should.be.true();
this.gitignore.denies('foo/test.swp').should.be.true();
this.gitignore.denies('node_modules/wat.js').should.be.true();
this.gitignore.denies('foo/bar.wat').should.be.true();
this.gitignoreNoNegatives.denies('node_modules/wat.js').should.be.true();
Expand Down

0 comments on commit eeb23b6

Please sign in to comment.