mirror of https://github.com/nodejs/node.git
11 lines
376 B
JavaScript
11 lines
376 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
require(common.fixturesDir + '/require-bin/bin/req.js');
|
|
|
|
var a = require(common.fixturesDir + '/module-require/relative/dot.js');
|
|
var b = require(common.fixturesDir + '/module-require/relative/dot-slash.js');
|
|
|
|
assert.equal(a.value, 42);
|
|
assert.equal(a, b, 'require(".") should resolve like require("./")');
|