It seems arrow is not needed in “expect” in CapitalisePipe.spec.js,
Crush
11

You need that one to catch the exception or it slips through.