From 464b5b649c0e5e3968f647b1b6462ddf5e389041 Mon Sep 17 00:00:00 2001 From: Ger Hobbelt Date: Mon, 6 Jul 2020 15:54:14 +0200 Subject: [PATCH] added tests for #11: all pass as expected given the latest work done. --- test/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/index.js b/test/index.js index 674be07..1cb3c7a 100644 --- a/test/index.js +++ b/test/index.js @@ -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*');