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
2009c2f4
...
2009c2f43f10341eb354db25809c2e67a1109dd2
authored
2012-03-31 10:41:37 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #77 - Tester#assertEquals outputs 'undefined' if no message provided
1 parent
f2d7dd2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
modules/tester.js
modules/tester.js
View file @
2009c2f
...
...
@@ -118,6 +118,7 @@ var Tester = function(casper, options) {
*/
this
.
assertEquals
=
function
assertEquals
(
subject
,
expected
,
message
)
{
var
eventName
;
message
=
message
||
""
;
if
(
this
.
testEquals
(
subject
,
expected
))
{
eventName
=
"success"
;
casper
.
echo
(
this
.
colorize
(
this
.
options
.
passText
,
'INFO'
)
+
' '
+
this
.
formatMessage
(
message
));
...
...
Please
register
or
sign in
to post a comment