It turns out done accepts err as arguments, so it is straightforward to throw an error by
done( new Error("Unexpected error") );
It turns out done accepts err as arguments, so it is straightforward to throw an error by
done( new Error("Unexpected error") );