()
| 66 | }); |
| 67 | |
| 68 | const initial = () => { |
| 69 | $state.go('foo'); |
| 70 | $q.flush(); |
| 71 | $timeout.flush(); |
| 72 | expect(log).toBe(''); |
| 73 | expect($state.current.name).toBe('foo'); |
| 74 | }; |
| 75 | |
| 76 | it("can cancel a transition that would exit the view's state by returning false", () => { |
| 77 | $state.defaultErrorHandler(function () {}); |