From daa10bc635e357100a2986191e725034d226243d Mon Sep 17 00:00:00 2001 From: Adrian Lee Date: Wed, 19 Mar 2014 21:55:45 -0700 Subject: [PATCH] test(macModal): Make sure afterHide test is working properly --- test/unit/modal.spec.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/modal.spec.coffee b/test/unit/modal.spec.coffee index c7e854c..4e3a5ba 100644 --- a/test/unit/modal.spec.coffee +++ b/test/unit/modal.spec.coffee @@ -189,6 +189,7 @@ describe "Mac modal", -> expect($rootScope.afterHide).not.toHaveBeenCalled() modal.hide() + $timeout.flush() expect($rootScope.afterHide).toHaveBeenCalled()