diff --git a/src/angular-mocks.js b/src/angular-mocks.js index cb869f645fb7..a39fd7bf5463 100644 --- a/src/angular-mocks.js +++ b/src/angular-mocks.js @@ -283,7 +283,7 @@ function MockBrowser() { if (fn.id === deferId) fnIndex = index; }); - if (fnIndex) { + if (fnIndex !== undefined) { self.deferredFns.splice(fnIndex, 1); } };