You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As is, it fails unless the first line is t.plan(0) (Assertion count does not match planned). I would assume a throws would count as an assertion, right?
Second, the docs show error is the second required param, but the assertion is successful no matter what value I put in there. I can even leave it undefined (as above) & it still passes.
As a workaround, I'm using a try catch block that works fine, but it'd be nice to condense the code & just use throws.