Skip to content

Commit

Permalink
added a few tests for codemix#14
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Jul 6, 2020
1 parent 75aa96c commit d9effe1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,12 @@ describe('gitignore parser', function () {
let gitignore = LIB.compile('node-modules');
gitignoreDenies(gitignore, 'packages/my-package/node-modules', true);
gitignoreAccepts(gitignore, 'packages/my-package/node-modules', false);

gitignoreDenies(gitignore, 'packages/my-package/node-modules/a', true);
gitignoreAccepts(gitignore, 'packages/my-package/node-modules/a', false);

gitignoreDenies(gitignore, 'node-modules/a', true);
gitignoreAccepts(gitignore, 'node-modules/a', false);
});
});

Expand Down

0 comments on commit d9effe1

Please sign in to comment.