Running multiple tests within one test #2857
Unanswered
ThatTonybo
asked this question in
Q&A
Replies: 1 comment
-
AVA runs all assertions in your test. If there are multiple failures you'll only see the first. Whether you write three different test for the parameters, or one with multiple assertions, is up to you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a test as follows:
The
has()
method I'm testing accepts three distinct params, which I'd like to test. Two will return the same result, and one will return a different result.Am I able to do multiple
t.deepEqual
ort.is
in a row before the test will pass, or will the test pass on the first and not continue?Beta Was this translation helpful? Give feedback.
All reactions