From f4a1263044fc2db9a34b958c0ecb436a52c9cae0 Mon Sep 17 00:00:00 2001 From: Nathan Hammond Date: Fri, 4 Nov 2016 00:06:19 -0500 Subject: [PATCH 1/2] Failing test for #81. --- tests/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/index.js b/tests/index.js index f6ec75c..7f3ec70 100644 --- a/tests/index.js +++ b/tests/index.js @@ -148,6 +148,23 @@ describe('broccoli-funnel', function(){ }); }); + it('properly supports relative path input node', function() { + var assertions = 0; + + var node = new Funnel('../broccoli-funnel', { + destDir: 'foo' + }); + + builder = new broccoli.Builder(node); + return builder.build() + .catch(function(error) { + assertions++; + }) + .then(function() { + expect(assertions).to.equal(0, 'Build did not throw an error, relative path traversal worked.'); + }); + }); + it('throws error on unspecified allowEmpty', function() { var assertions = 0; var inputPath = FIXTURE_INPUT + '/dir1'; From 86d9c87c1015a08f2cfb031f8e90395bdfeb4156 Mon Sep 17 00:00:00 2001 From: Nathan Hammond Date: Fri, 4 Nov 2016 16:24:30 -0500 Subject: [PATCH 2/2] Update exists-sync. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2e5480f..f18aa87 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "blank-object": "^1.0.1", "broccoli-plugin": "^1.0.0", "debug": "^2.2.0", - "exists-sync": "0.0.3", + "exists-sync": "0.0.4", "fast-ordered-set": "^1.0.0", "fs-tree-diff": "^0.5.3", "heimdalljs": "^0.2.0",