mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Added an extension on node's 'require' module so it can import .coffee module and added some tests to make sure it works.
This commit is contained in:
2
test/test_importing.coffee
Normal file
2
test/test_importing.coffee
Normal file
@@ -0,0 +1,2 @@
|
||||
# Check if it can import a coffeescript-only module and check its output
|
||||
ok (require 'test_module').foo is "bar"
|
||||
1
test/test_module.coffee
Normal file
1
test/test_module.coffee
Normal file
@@ -0,0 +1 @@
|
||||
exports.foo: "bar"
|
||||
Reference in New Issue
Block a user