-
Robert Knight authored
Fix a test failure due to a subtle issue with the interaction between the `$q` service, `AnnotationController#delete` and `$timeout.flush` in tests. Instantiating the rejected promise _before_ calling `$timeout.flush` resulted in Angular's unhandled promise checking code being triggered in the test.
e68aa1ab