Skip to content

Commit

Permalink
added test for issue codemix#14
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Jul 5, 2020
1 parent fdca1c7 commit f45e14a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,12 @@ assert.strictEqual(gitignore.accepts('/ajax/libs/punycode/2.0.0'), true); //outp
assert.strictEqual(gitignore.accepts('/ajax/libs/typescript/2.0.6-insiders.20161014'), true); //output false
});
});

describe('issue #12', function () {
it('should not fail test A', function () {
var gitignore = parser.compile('node_modules');
assert.strictEqual(gitignore.rejects('packages/my-package/node-modules'), true);
assert.strictEqual(gitignore.accepts('packages/my-package/node-modules'), false);
});
});
});

0 comments on commit f45e14a

Please sign in to comment.