Skip to content

Commit 9db1959

Browse files
Zsolt Borbélyyichoi
authored andcommitted
Revive test_require.js (#949)
Details: * Add this test to the testrunner as `test_module_require.js`. * Move module `process` related code into `test_process_readsource.js`. ** Move the used JSON-file to `test/resources/process/`. IoT.js-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
1 parent 0113943 commit 9db1959

File tree

15 files changed

+47
-31
lines changed

15 files changed

+47
-31
lines changed

test/run_pass/require1/node_modules/test_index/package.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/run_pass/require1/require_add.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
@NOTEST
1818
*/
1919

20-
var x = require("buffer");
21-
2220
exports.add = function(a, b) {
2321
return a + b;
2422
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"main": "index_test"
3+
}

0 commit comments

Comments
 (0)