mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
renaming import test files to avoid risking the disfavor of .gitignore
This commit is contained in:
parent
f2f10e85a8
commit
2e408648aa
13 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
2
test/importing/import.extension.coffee
Normal file
2
test/importing/import.extension.coffee
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Required by ../importing.coffee
|
||||
module.exports = {value: -> 2}
|
3
test/importing/import.litcoffee
Normal file
3
test/importing/import.litcoffee
Normal file
|
@ -0,0 +1,3 @@
|
|||
Required by ../importing.coffee
|
||||
|
||||
module.exports = {value: -> 3}
|
Loading…
Add table
Add a link
Reference in a new issue