-
Notifications
You must be signed in to change notification settings - Fork 1.4k
rename t.ok()
to t.truthy()
and t.notOk()
to t.falsy()
#716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
By analyzing the blame information on this pull request, we identified @uiureo, @sotojuan and @kasperlewau to be potential reviewers |
342881f
to
fed5812
Compare
}); | ||
|
||
test.serial(t => { | ||
const a = 'bar'; | ||
|
||
t.ok(a === 'foo', 'with message'); | ||
t.truthy(a === 'foo', 'with message'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, these should just be t.true
.
Responded to all comments :-) |
LGTM |
}); | ||
``` | ||
|
||
Will output: | ||
|
||
``` | ||
t.ok(a.test(b) || b === c) | ||
t.true(a.test(b) || b === c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The power-assert example right under this should be moved a bit to the right. The lines do not point to what is described.
ok
to truthy
and notOk
to falsy
t.ok()
to t.truthy()
and t.notOk()
to t.falsy()
Seems you need to update some test assertions too. |
Updated. Should be good to go now :D |
LGTM! |
Pretty confident that this is ready to go.