This construction seems a little weird -- normally expect() isn't applied to the unit test's hardcoded values.  Maybe have a check at the top like `if (expectInline) expect(promise).toBeTruthy()`?