Commit 2d6583a9 2d6583a93d931f9443ecd7109937eec2cf1a3046 by Ludovic Perrine

Added test for node_modules in parent directory

1 parent f20b9eb2
1 var casper = require('casper').create();
2 var foo = require('foo');
3 console.log(foo);
4 casper.exit();
...@@ -198,6 +198,10 @@ class RequireWithRelativeScriptPathTest(CasperExecTestBase): ...@@ -198,6 +198,10 @@ class RequireWithRelativeScriptPathTest(CasperExecTestBase):
198 def test_node_module_require_json(self): 198 def test_node_module_require_json(self):
199 self.assertCommandOutputEquals('./test_node_json.js', '42') 199 self.assertCommandOutputEquals('./test_node_json.js', '42')
200 200
201 @timeout(20)
202 def test_node_module_require_subdir(self):
203 self.assertCommandOutputEquals('./test_node_subdir/test_node_mod.js', '42')
204
201 205
202 class ScriptOutputTest(CasperExecTestBase): 206 class ScriptOutputTest(CasperExecTestBase):
203 @timeout(20) 207 @timeout(20)
......