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

Commit f96e7c0

Browse files
RumataEstorjoshkurz
authored andcommitted
Ensure spied functions contents is executed
1 parent 3314ea3 commit f96e7c0

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
@@ -389,12 +389,12 @@ describe('uiCalendar', function () {
389389
}
390390
};
391391

392-
spyOn($rootScope,'$apply');
392+
spyOn($rootScope,'$apply').andCallThrough();
393393

394394
angular.forEach(scope.uiConfig.calendar, function(value,key){
395395
if (typeof value === 'function'){
396396
functionCount++;
397-
spyOn(scope.uiConfig.calendar, key);
397+
spyOn(scope.uiConfig.calendar, key).andCallThrough();
398398

399399
var fullCalendarConfig = calendarCtrl.getFullCalendarConfig(scope.uiConfig.calendar, {});
400400

@@ -423,12 +423,12 @@ describe('uiCalendar', function () {
423423
}
424424
};
425425

426-
spyOn($rootScope,'$apply');
426+
spyOn($rootScope,'$apply').andCallThrough();
427427

428428
angular.forEach(scope.uiConfig.calendar, function(value,key){
429429
if (typeof value === 'function'){
430430
functionCount++;
431-
spyOn(scope.uiConfig.calendar, key);
431+
spyOn(scope.uiConfig.calendar, key).andCallThrough();
432432

433433
var fullCalendarConfig = calendarCtrl.getFullCalendarConfig(scope.uiConfig.calendar, {});
434434

0 commit comments

Comments
 (0)