Skip to content

Commit

Permalink
added tests for codemix#11: all pass as expected given the latest wor…
Browse files Browse the repository at this point in the history
…k done.
  • Loading branch information
GerHobbelt committed Jul 6, 2020
1 parent 2618b74 commit 464b5b6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,20 @@ describe('gitignore parser', function () {
});
});

describe('issue #11', function () {
it('should not fail test A', function () {
let gitignore = LIB.compile('foo.txt');
gitignoreDenies(gitignore, 'foo.txt', true);
gitignoreAccepts(gitignore, 'foo.txt', false);
});

it('should not fail test B', function () {
let gitignore = LIB.compile('foo.txt');
gitignoreDenies(gitignore, 'a/foo.txt', true);
gitignoreAccepts(gitignore, 'a/foo.txt', false);
});
});

describe('issue #12', function () {
it('should not fail test A', function () {
let gitignore = LIB.compile('/ajax/libs/bPopup/*b*');
Expand Down

0 comments on commit 464b5b6

Please sign in to comment.