Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Add .truthy and .falsy#181

Open
krawaller wants to merge 1 commit intoshouldjs:masterfrom
krawaller:master
Open

Add .truthy and .falsy#181
krawaller wants to merge 1 commit intoshouldjs:masterfrom
krawaller:master

Conversation

@krawaller
Copy link

This PR adds .truthy as an alias to .ok, and compliments it with a new .falsy assertion.

They're both trivial to add on your own, of course. But I think that the use case is common enough to warrant inclusion in the main library, as .truthy and .falsy reads better than .ok and .not.ok.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant