MCPcopy
hub / github.com/angular-ui/ui-router / resolvedError

Function resolvedError

test/util/testUtilsNg1.ts:91–95  ·  view source on GitHub ↗
(promise)

Source from the content-addressed store, hash-verified

89}
90
91export 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
98export function caught(fn) {

Callers 3

stateEventsSpec.tsFile · 0.90
stateSpec.tsFile · 0.90
resolveSpec.tsFile · 0.90

Calls 1

resolvedPromiseFunction · 0.85

Tested by

no test coverage detected