generated from garronej/ts-ci
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assert): support callback for message
A callback may be passed to `assert`'s second arg instead of a string. The callback must return a string. This is useful in when the message is expensive to create. With the callback message, we can defer the potentially costly message creation until it is actually needed. Closes #34
- Loading branch information
1 parent
9aa7b3b
commit 03005cf
Showing
2 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters