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
83e3f84e
...
83e3f84ec2a853ad94d3841dde16a0962229c11e
authored
2012-11-04 12:23:41 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added `Tester.assertFalse()` as an alias of `Tester.assertNot()`
1 parent
0eb189e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
CHANGELOG.md
modules/tester.js
CHANGELOG.md
View file @
83e3f84
...
...
@@ -5,6 +5,7 @@ XXXX-XX-XX, v1.0.0
------------------
-
fixed
[
#266
](
https://github.com/n1k0/casperjs/issues/266
)
- Fix
`tester`
module and its self tests
-
added
`Tester.assertFalse()`
as an alias of
`Tester.assertNot()`
2012-10-31, v1.0.0-RC4
----------------------
...
...
modules/tester.js
View file @
83e3f84
...
...
@@ -344,7 +344,7 @@ Tester.prototype.assertMatch = Tester.prototype.assertMatches = function assertM
* @param String message Test description
* @return Object An assertion result object
*/
Tester
.
prototype
.
assertNot
=
function
assertNot
(
condition
,
message
)
{
Tester
.
prototype
.
assertNot
=
Tester
.
prototype
.
assertFalse
=
function
assertNot
(
condition
,
message
)
{
"use strict"
;
return
this
.
assert
(
!
condition
,
message
,
{
type
:
"assertNot"
,
...
...
Please
register
or
sign in
to post a comment