added `Tester.assertFalse()` as an alias of `Tester.assertNot()`
Showing
2 changed files
with
2 additions
and
1 deletions
... | @@ -5,6 +5,7 @@ XXXX-XX-XX, v1.0.0 | ... | @@ -5,6 +5,7 @@ XXXX-XX-XX, v1.0.0 |
5 | ------------------ | 5 | ------------------ |
6 | 6 | ||
7 | - fixed [#266](https://github.com/n1k0/casperjs/issues/266) - Fix `tester` module and its self tests | 7 | - fixed [#266](https://github.com/n1k0/casperjs/issues/266) - Fix `tester` module and its self tests |
8 | - added `Tester.assertFalse()` as an alias of `Tester.assertNot()` | ||
8 | 9 | ||
9 | 2012-10-31, v1.0.0-RC4 | 10 | 2012-10-31, v1.0.0-RC4 |
10 | ---------------------- | 11 | ---------------------- | ... | ... |
... | @@ -344,7 +344,7 @@ Tester.prototype.assertMatch = Tester.prototype.assertMatches = function assertM | ... | @@ -344,7 +344,7 @@ Tester.prototype.assertMatch = Tester.prototype.assertMatches = function assertM |
344 | * @param String message Test description | 344 | * @param String message Test description |
345 | * @return Object An assertion result object | 345 | * @return Object An assertion result object |
346 | */ | 346 | */ |
347 | Tester.prototype.assertNot = function assertNot(condition, message) { | 347 | Tester.prototype.assertNot = Tester.prototype.assertFalse = function assertNot(condition, message) { |
348 | "use strict"; | 348 | "use strict"; |
349 | return this.assert(!condition, message, { | 349 | return this.assert(!condition, message, { |
350 | type: "assertNot", | 350 | type: "assertNot", | ... | ... |
-
Please register or sign in to post a comment