• Robert Knight's avatar
    Fix AnnotationController#delete test failure · e68aa1ab
    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
annotation-test.js 40.5 KB