Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
better check for planned tests
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Dec 26, 2012
1 parent 90bec9f commit 14a9a8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/tester.js
Expand Up @@ -830,9 +830,10 @@ Tester.prototype.done = function done(planned) {
if (arguments.length > 0) {
this.casper.warn('done() `planned` arg is deprecated as of 1.1');
}
if (this.currentSuite && this.currentSuite.planned !== this.executed) {
if (this.currentSuite && this.currentSuite.planned && this.currentSuite.planned !== this.executed) {
this.dubious(this.currentSuite.planned, this.executed);
} else if (planned && planned !== this.executed) {
// BC
this.dubious(planned, this.executed);
}
if (this.currentSuite) {
Expand Down

0 comments on commit 14a9a8b

Please sign in to comment.