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

Commit 6e2a52e

Browse files
committed
Remove non-valid test
1 parent 7d55fc9 commit 6e2a52e

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

test/calendar.spec.js

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -384,41 +384,6 @@ describe('uiCalendar', function () {
384384
}
385385
});
386386
}));
387-
388-
it('should make sure that any function that already has an apply in it does not break the calendar (backwards compatible)', inject(function($timeout, $rootScope){
389-
390-
var functionCount = 0;
391-
scope.uiConfig = {
392-
calendar:{
393-
height: 200,
394-
weekends: false,
395-
defaultView: 'month',
396-
dayClick: function(){scope.$apply();},
397-
eventClick: function(){scope.$apply();},
398-
eventDrop: function(){scope.$apply();},
399-
eventResize: function(){scope.$apply();},
400-
eventMouseover: function(){scope.$apply();}
401-
}
402-
};
403-
404-
spyOn($rootScope,'$apply').andCallThrough();
405-
406-
angular.forEach(scope.uiConfig.calendar, function(value,key){
407-
if (typeof value === 'function'){
408-
functionCount++;
409-
spyOn(scope.uiConfig.calendar, key).andCallThrough();
410-
411-
var fullCalendarConfig = calendarCtrl.getFullCalendarConfig(scope.uiConfig.calendar, {});
412-
413-
fullCalendarConfig[key]();
414-
415-
scope.$apply();
416-
$timeout.flush();
417-
expect($rootScope.$apply.callCount).toBe(functionCount*2);
418-
expect(scope.uiConfig.calendar[key]).toHaveBeenCalled();
419-
}
420-
});
421-
}));
422387
});
423388

424-
});
389+
});

0 commit comments

Comments
 (0)