Putting an expectation on promise reasons (e.g. !== undefined)