Skip to content

Commit c35e675

Browse files
Roland Takacshaesik
Roland Takacs
authored andcommitted
Use absolute paths for file resources (#1936)
NuttX based operating systems require absolute paths. IoT.js-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
1 parent 7659b3d commit c35e675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/run_pass/test_module_json.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
var assert = require('assert');
17-
var json = require('./resources/test.json');
17+
var json = require(process.cwd() + '/resources/test.json');
1818

1919
assert.equal(json.name, 'IoT.js');
2020
assert.equal(json.author, 'Samsung Electronics Co., Ltd.');

0 commit comments

Comments
 (0)