Skip to content

assert statement in testing #5804

Answered by Mericbey167
mamedaliii asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, im at lesson 9 and here is the thing that Patrick said: "Usually, we want to make sure that we have one assert per it but we'll have bunch here". So i guess best practice is using one assert&expect per it but he also used bunch of asserts at lesson 9. Since there is no problem with console we can use multiple asserts in my opinion.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mamedaliii
Comment options

Answer selected by mamedaliii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants