mirror of https://github.com/lukechilds/node.git
Browse Source
Added some more tests, and refactored the uri and path modules to use the same normalization logic, so that nothing is relying on flaky regexps. http://groups.google.com/group/nodejs/browse_thread/thread/34779f8c10098c5e http://groups.google.com/group/nodejs/browse_thread/thread/1aa0146b92582679#msg_9822c03998cb4064v0.7.4-release
isaacs
15 years ago
committed by
Ryan Dahl
10 changed files with 62 additions and 38 deletions
@ -0,0 +1,6 @@ |
|||
|
|||
var root = require("./../root"); |
|||
|
|||
exports.hello = function () { |
|||
return root.calledFromFoo(); |
|||
}; |
@ -0,0 +1,10 @@ |
|||
|
|||
var foo = exports.foo = require("./folder/foo"); |
|||
|
|||
exports.hello = "hello"; |
|||
exports.sayHello = function () { |
|||
return foo.hello(); |
|||
}; |
|||
exports.calledFromFoo = function () { |
|||
return exports.hello; |
|||
}; |
@ -0,0 +1,2 @@ |
|||
exports.hello = "hello from one!"; |
|||
|
@ -0,0 +1 @@ |
|||
exports.hello = require('./hello').hello; |
@ -0,0 +1,2 @@ |
|||
exports.hello = "hello from two!"; |
|||
|
@ -0,0 +1 @@ |
|||
exports.hello = require('./hello').hello; |
Loading…
Reference in new issue