Permalink
Browse files

dollar test passes, additional require() case for "/index" without th…

…e ".js"
  • Loading branch information...
1 parent 9a9caad commit f185f4d7a76f8a8a68184493b604e6c65db7d042 @substack committed Feb 23, 2011
Showing with 2 additions and 2 deletions.
  1. +0 −1 index.js
  2. +1 −1 test/dollar.js
  3. 0 test/dollar/{ → dollar}/index.js
  4. +1 −0 wrappers/prelude.js
View
@@ -53,7 +53,6 @@ exports.bundle = function (opts) {
var wrapperBody = fs.readFileSync(__dirname + '/wrappers/body.js', 'utf8');
exports.wrap = function (libname, opts) {
-console.dir([ libname, opts ]);
if (!opts) opts = {};
if (Array.isArray(libname)) {
View
@@ -16,5 +16,5 @@ exports.dollar = function () {
+ '$(100)'
, c
);
- console.log(res);
+ assert.eql(res, 10000);
};
File renamed without changes.
View
@@ -3,6 +3,7 @@ function require (path) {
var mod
= require.modules[path]
|| require.modules[path + '.js']
+ || require.modules[path + '/index']
|| require.modules[path + '/index.js']
;

0 comments on commit f185f4d

Please sign in to comment.