Skip to content

Commit

Permalink
Merge pull request #18 from nichoth/test-end
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Sep 29, 2023
2 parents 7042029 + d54a68e commit b21f97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ class Test {

this.done = true

if (this._planned !== null && this._actual !== null) {
if (this._planned > this._actual) {
if (this._planned !== null) {
if (this._planned > (this._actual || 0)) {
throw new Error(`Test ended before the planned number
planned: ${this._planned}
actual: ${this._actual}
Expand Down

0 comments on commit b21f97d

Please sign in to comment.