From 072df5ecc941bf5c64d7f4941c379e5b60cfb5dd Mon Sep 17 00:00:00 2001 From: Fahad Ibnay Heylaal Date: Thu, 7 Mar 2013 10:15:01 +0600 Subject: [PATCH] more test coverage for `baseFileName` helper. --- test/helpers.coffee | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/helpers.coffee b/test/helpers.coffee index 323b7174..f92c2936 100644 --- a/test/helpers.coffee +++ b/test/helpers.coffee @@ -101,15 +101,23 @@ test "the `last` helper allows one to specify an optional offset", -> test "the `baseFileName` helper returns the file name to write to", -> ext = '.js' sourceToCompiled = + '.coffee': '.js' + 'a.coffee': 'a' + ext 'b.coffee': 'b' + ext + 'coffee.coffee': 'coffee' + ext + 'a.litcoffee': 'a' + ext 'b.litcoffee': 'b' + ext + 'coffee.litcoffee': 'coffee' + ext + 'a.lit': 'a' + ext 'b.lit': 'b' + ext + 'coffee.lit': 'coffee' + ext + 'a.coffee.md': 'a' + ext 'b.coffee.md': 'b' + ext - 'coffee.coffee': 'coffee' + ext + 'coffee.coffee.md': 'coffee' + ext for sourceFileName, expectedFileName of sourceToCompiled name = baseFileName sourceFileName, yes