From 24eebf3cb3fccd98555d78e47824ed7428fd9c10 Mon Sep 17 00:00:00 2001 From: Kenneth Ormandy Date: Wed, 5 Feb 2014 11:28:04 -0800 Subject: [PATCH] Adds failing tests for #92 --- test/helpers.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/helpers.js b/test/helpers.js index 61e7a6e6..777eeb0e 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -13,6 +13,20 @@ describe("helpers", function(){ done() }) + it("should collide if output path is .", function(done){ + helpers.willCollide(".", ".").should.be.true + helpers.willCollide("/foo/bar/myproject", ".").should.be.true + helpers.willCollide("/foo/bar/myproject/", ".").should.be.true + done() + }) + + it("should collide if output path is ./", function(done){ + helpers.willCollide("./", "./").should.be.true + helpers.willCollide("/foo/bar/myproject", "./").should.be.true + helpers.willCollide("/foo/bar/myproject/", "./").should.be.true + done() + }) + it("should not collide if output path is /output", function(done){ helpers.willCollide("/foo/bar/myproject", "/output").should.be.false helpers.willCollide("/foo/bar/myproject", "/output/").should.be.false