Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 62ae7fc

Browse files
committed
fix(angular-mocks): fix .defer.cancel when i=0
1 parent 3ace81b commit 62ae7fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-mocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function MockBrowser() {
283283
if (fn.id === deferId) fnIndex = index;
284284
});
285285

286-
if (fnIndex) {
286+
if (fnIndex !== undefined) {
287287
self.deferredFns.splice(fnIndex, 1);
288288
}
289289
};

0 commit comments

Comments
 (0)