Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
2d6583a9
...
2d6583a93d931f9443ecd7109937eec2cf1a3046
authored
2014-08-01 15:32:11 +0200
by
Ludovic Perrine
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added test for node_modules in parent directory
1 parent
f20b9eb2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
tests/clitests/modules/test_node_subdir/test_node_mod.js
tests/clitests/runtests.py
tests/clitests/modules/test_node_subdir/test_node_mod.js
0 → 100644
View file @
2d6583a
var
casper
=
require
(
'casper'
).
create
();
var
foo
=
require
(
'foo'
);
console
.
log
(
foo
);
casper
.
exit
();
tests/clitests/runtests.py
View file @
2d6583a
...
...
@@ -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
)
...
...
Please
register
or
sign in
to post a comment