Skip to content

Commit

Permalink
Ensure t.assert() counts as a passed assertion
Browse files Browse the repository at this point in the history
Fixes #2354.
  • Loading branch information
theashraf authored and novemberborn committed Jan 12, 2020
1 parent 82cef5c commit cf26b6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/assert.js
Expand Up @@ -853,7 +853,10 @@ class Assertions {
operator: '!!',
values: [formatWithLabel('Value is not truthy:', actual)]
}));
return;
}

pass();
});
} else {
this.assert = withSkip(withPowerAssert(
Expand Down

0 comments on commit cf26b6d

Please sign in to comment.