| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 94c7331 commit c866c90
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,9 +22,17 @@ | |||
| 22 | 22 | 'use strict'; | |
| 23 | 23 | const common = require('../common'); | |
| 24 | 24 | const assert = require('assert'); | |
| 25 | + const path = require('path'); | ||
| 25 | 26 | ||
| 26 | - const content = require(common.fixturesDir + | ||
| 27 | - '/json-with-directory-name-module/module-stub/one/two/three.js'); | ||
| 27 | + const filePath = path.join( | ||
| 28 | + common.fixturesDir, | ||
| 29 | + 'json-with-directory-name-module', | ||
| 30 | + 'module-stub', | ||
| 31 | + 'one', | ||
| 32 | + 'two', | ||
| 33 | + 'three.js' | ||
| 34 | + ); | ||
| 35 | + const content = require(filePath); | ||
| 28 | 36 | ||
| 29 | 37 | assert.notStrictEqual(content.rocko, 'artischocko'); | |
| 30 | 38 | assert.strictEqual(content, 'hello from module-stub!'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments