Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 7d55fc9

Browse files
committed
Ensure spied functions contents is executed
1 parent 81069d1 commit 7d55fc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/calendar.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ describe('uiCalendar', function () {
367367
}
368368
};
369369

370-
spyOn($rootScope,'$apply');
370+
spyOn($rootScope,'$apply').andCallThrough();
371371

372372
angular.forEach(scope.uiConfig.calendar, function(value,key){
373373
if (typeof value === 'function'){
374374
functionCount++;
375-
spyOn(scope.uiConfig.calendar, key);
375+
spyOn(scope.uiConfig.calendar, key).andCallThrough();
376376

377377
var fullCalendarConfig = calendarCtrl.getFullCalendarConfig(scope.uiConfig.calendar, {});
378378

@@ -401,12 +401,12 @@ describe('uiCalendar', function () {
401401
}
402402
};
403403

404-
spyOn($rootScope,'$apply');
404+
spyOn($rootScope,'$apply').andCallThrough();
405405

406406
angular.forEach(scope.uiConfig.calendar, function(value,key){
407407
if (typeof value === 'function'){
408408
functionCount++;
409-
spyOn(scope.uiConfig.calendar, key);
409+
spyOn(scope.uiConfig.calendar, key).andCallThrough();
410410

411411
var fullCalendarConfig = calendarCtrl.getFullCalendarConfig(scope.uiConfig.calendar, {});
412412

0 commit comments

Comments
 (0)