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
676a1143
...
676a1143fee592e7cfdf83f2ea094fa6bdf37cac
authored
2012-12-03 00:15:48 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
avoid unnecessary nested ifs
1 parent
1f1d0872
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
docs
tests/run.js
docs
@
15c24177
Subproject commit
ea64d9917aaf7268a86b9fad010203615a29b9e0
Subproject commit
15c24177c1c3bf1d79aad2e11a38f9d5c50a364f
...
...
tests/run.js
View file @
676a114
...
...
@@ -21,11 +21,9 @@ function checkSelfTest(tests) {
var
isCasperTest
=
false
;
tests
.
forEach
(
function
(
test
)
{
var
testDir
=
fs
.
absolute
(
fs
.
dirname
(
test
));
if
(
fs
.
isDirectory
(
testDir
))
{
if
(
fs
.
exists
(
fs
.
pathJoin
(
testDir
,
'.casper'
)))
{
if
(
fs
.
isDirectory
(
testDir
)
&&
fs
.
exists
(
fs
.
pathJoin
(
testDir
,
'.casper'
)))
{
isCasperTest
=
true
;
}
}
});
return
isCasperTest
;
}
...
...
@@ -89,7 +87,6 @@ this.loadIncludes.forEach(function(include){
}).
filter
(
function
(
file
)
{
return
utils
.
isString
(
file
);
});
casper
.
test
.
loadIncludes
[
include
]
=
utils
.
unique
(
container
);
}
});
...
...
Please
register
or
sign in
to post a comment