|
@ -176,7 +176,7 @@ try { |
|
|
require(loadOrder + 'file3'); |
|
|
require(loadOrder + 'file3'); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
// Not a real .node module, but we know we require'd the right thing.
|
|
|
// Not a real .node module, but we know we require'd the right thing.
|
|
|
assert.ok(e.message.match(/file3\.node/)); |
|
|
assert.ok(e.message.replace(/\\/g, '/').match(/file3\.node/)); |
|
|
} |
|
|
} |
|
|
assert.equal(require(loadOrder + 'file4').file4, 'file4.reg', msg); |
|
|
assert.equal(require(loadOrder + 'file4').file4, 'file4.reg', msg); |
|
|
assert.equal(require(loadOrder + 'file5').file5, 'file5.reg2', msg); |
|
|
assert.equal(require(loadOrder + 'file5').file5, 'file5.reg2', msg); |
|
@ -184,7 +184,7 @@ assert.equal(require(loadOrder + 'file6').file6, 'file6/index.js', msg); |
|
|
try { |
|
|
try { |
|
|
require(loadOrder + 'file7'); |
|
|
require(loadOrder + 'file7'); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
assert.ok(e.message.match(/file7\/index\.node/)); |
|
|
assert.ok(e.message.replace(/\\/g, '/').match(/file7\/index\.node/)); |
|
|
} |
|
|
} |
|
|
assert.equal(require(loadOrder + 'file8').file8, 'file8/index.reg', msg); |
|
|
assert.equal(require(loadOrder + 'file8').file8, 'file8/index.reg', msg); |
|
|
assert.equal(require(loadOrder + 'file9').file9, 'file9/index.reg2', msg); |
|
|
assert.equal(require(loadOrder + 'file9').file9, 'file9/index.reg2', msg); |
|
|