Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

test-module-loading: convert backslashes to forward slashes

This makes the test pass on Windows.
  • Loading branch information...
piscisaureus committed Jun 12, 2012
1 parent 094f742 commit b27a4cbe2a3522430fd4dfc8cc44d726685c0a52
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/simple/test-module-loading.js
@@ -211,7 +211,8 @@ assert.deepEqual(json, {
// the appropriate children, and so on.

var children = module.children.reduce(function red(set, child) {
var id = path.relative(path.dirname(__dirname), child.id);
var id = path.relative(path.dirname(__dirname), child.id)
id = id.replace(/\\/g, '/');
set[id] = child.children.reduce(red, {});
return set;
}, {});

0 comments on commit b27a4cb

Please sign in to comment.
You can’t perform that action at this time.