Commit 2d6583a9 2d6583a93d931f9443ecd7109937eec2cf1a3046 by Ludovic Perrine

Added test for node_modules in parent directory

1 parent f20b9eb2
var casper = require('casper').create();
var foo = require('foo');
console.log(foo);
casper.exit();
......@@ -198,6 +198,10 @@ class RequireWithRelativeScriptPathTest(CasperExecTestBase):
def test_node_module_require_json(self):
self.assertCommandOutputEquals('./test_node_json.js', '42')
@timeout(20)
def test_node_module_require_subdir(self):
self.assertCommandOutputEquals('./test_node_subdir/test_node_mod.js', '42')
class ScriptOutputTest(CasperExecTestBase):
@timeout(20)
......