(fn)
| 96 | |
| 97 | // Misc test utils |
| 98 | export 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+ |
| 108 | export function obj(object) { |