Closed
Description
t.throws
documents that an expectation with property "any" set to true
should result in a passing assertion when the function throws a non-error value, which doesn't work when the thrown value is falsy.
Concretely, the following test should pass:
test("throws(throwsFalse)", t => {
t.throws(() => { throw false; }, { any: true });
});
but instead fails against ava version 6.1.1:
2: test("throws(throwsFalse)", t => {
3: t.throws(() => { throw false; }, { any: true });
4: });
Function returned:
undefined