This commit is contained in:
Ilya Kantor 2019-06-26 14:23:45 +03:00
parent cb6aac9c0a
commit 61910d1263
2 changed files with 17 additions and 19 deletions

View file

@ -4,7 +4,7 @@ What we have here is actually 3 tests, but layed out as a single function with 3
Sometimes it's easier to write this way, but if an error occurs, it's much less obvious what went wrong.
If an error happens inside a complex execution flow, then we'll have to figure out the data at that point. We'll actually have to *debug the test*.
If an error happens in the middle of a complex execution flow, then we'll have to figure out the data at that point. We'll actually have to *debug the test*.
It would be much better to break the test into multiple `it` blocks with clearly written inputs and outputs.