(promise)
| 89 | } |
| 90 | |
| 91 | export function resolvedError(promise) { |
| 92 | var result = resolvedPromise(promise); |
| 93 | if (result.success) throw new Error('Promise was expected to fail but returned ' + jasmine.pp(result.value) + '.'); |
| 94 | return result.error; |
| 95 | } |
| 96 | |
| 97 | // Misc test utils |
| 98 | export function caught(fn) { |
no test coverage detected