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

Function caught

test/util/testUtilsNg1.ts:98–105  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

96
97// Misc test utils
98export function caught(fn) {
99 try {
100 fn();
101 return null;
102 } catch (e) {
103 return e;
104 }
105}
106
107// Usage of this helper should be replaced with a custom matcher in jasmine 2.0+
108export function obj(object) {

Callers 1

resolveSpec.tsFile · 0.90

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected