assertk
assertk copied to clipboard
use 'given' to wrap multiple assertions
trafficstars
Fix for #421 uses given to wrap multiple assertions. One potential issue here is if there are multiple failures in a block, only the first will be shown as a cause. I might suggest making a separate function to solve for this.
I have created a different fix for https://github.com/willowtreeapps/assertk/issues/421 a couple of days ago: https://github.com/willowtreeapps/assertk/pull/422 It doesn't have the problem that it shows only first error in a block, but is a little more complex.
Should be fixed by https://github.com/willowtreeapps/assertk/pull/437