mirror of https://github.com/lukechilds/node.git
Browse Source
PR-URL: https://github.com/nodejs/node/pull/14280 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>v6.x
committed by
Myles Borins
1 changed files with 10 additions and 2 deletions
@ -1,9 +1,17 @@ |
|||
'use strict'; |
|||
const common = require('../common'); |
|||
const assert = require('assert'); |
|||
const path = require('path'); |
|||
|
|||
const content = require(common.fixturesDir + |
|||
'/json-with-directory-name-module/module-stub/one/two/three.js'); |
|||
const filePath = path.join( |
|||
common.fixturesDir, |
|||
'json-with-directory-name-module', |
|||
'module-stub', |
|||
'one', |
|||
'two', |
|||
'three.js' |
|||
); |
|||
const content = require(filePath); |
|||
|
|||
assert.notStrictEqual(content.rocko, 'artischocko'); |
|||
assert.strictEqual(content, 'hello from module-stub!'); |
|||
|
Loading…
Reference in new issue