diff --git a/test/importing.coffee b/test/importing.coffee index 91d56d41..96fff020 100644 --- a/test/importing.coffee +++ b/test/importing.coffee @@ -19,16 +19,16 @@ unless window? or testingBrowser? test "javascript modules can be imported", -> magicVal = 1 - for module in 'test.js test2 .test2 test.extension.js test.unknownextension .coffee .coffee.md'.split ' ' + for module in 'import.js import2 .import2 import.extension.js import.unknownextension .coffee .coffee.md'.split ' ' ok require("./importing/#{module}").value?() is magicVal, module test "coffeescript modules can be imported", -> magicVal = 2 - for module in '.test.coffee test.coffee test.extension.coffee'.split ' ' + for module in '.import.coffee import.coffee import.extension.coffee'.split ' ' ok require("./importing/#{module}").value?() is magicVal, module test "literate coffeescript modules can be imported", -> magicVal = 3 # Leading space intentional to check for index.coffee.md - for module in ' .test.coffee.md test.coffee.md test.litcoffee test.extension.coffee.md'.split ' ' + for module in ' .import.coffee.md import.coffee.md import.litcoffee import.extension.coffee.md'.split ' ' ok require("./importing/#{module}").value?() is magicVal, module diff --git a/test/importing/.test.coffee b/test/importing/.import.coffee similarity index 100% rename from test/importing/.test.coffee rename to test/importing/.import.coffee diff --git a/test/importing/.test.coffee.md b/test/importing/.import.coffee.md similarity index 100% rename from test/importing/.test.coffee.md rename to test/importing/.import.coffee.md diff --git a/test/importing/.test2 b/test/importing/.import2 similarity index 100% rename from test/importing/.test2 rename to test/importing/.import2 diff --git a/test/importing/test.extension.coffee b/test/importing/import.coffee similarity index 100% rename from test/importing/test.extension.coffee rename to test/importing/import.coffee diff --git a/test/importing/test.coffee.md b/test/importing/import.coffee.md similarity index 100% rename from test/importing/test.coffee.md rename to test/importing/import.coffee.md diff --git a/test/importing/import.extension.coffee b/test/importing/import.extension.coffee new file mode 100644 index 00000000..ff8ad831 --- /dev/null +++ b/test/importing/import.extension.coffee @@ -0,0 +1,2 @@ +# Required by ../importing.coffee +module.exports = {value: -> 2} diff --git a/test/importing/test.extension.coffee.md b/test/importing/import.extension.coffee.md similarity index 100% rename from test/importing/test.extension.coffee.md rename to test/importing/import.extension.coffee.md diff --git a/test/importing/test.extension.js b/test/importing/import.extension.js similarity index 100% rename from test/importing/test.extension.js rename to test/importing/import.extension.js diff --git a/test/importing/test.js b/test/importing/import.js similarity index 100% rename from test/importing/test.js rename to test/importing/import.js diff --git a/test/importing/import.litcoffee b/test/importing/import.litcoffee new file mode 100644 index 00000000..99459eb3 --- /dev/null +++ b/test/importing/import.litcoffee @@ -0,0 +1,3 @@ +Required by ../importing.coffee + + module.exports = {value: -> 3} diff --git a/test/importing/test.unknownextension b/test/importing/import.unknownextension similarity index 100% rename from test/importing/test.unknownextension rename to test/importing/import.unknownextension diff --git a/test/importing/test2 b/test/importing/import2 similarity index 100% rename from test/importing/test2 rename to test/importing/import2