@@ -134,7 +134,7 @@ describe('uiCalendar', function () {
134
134
scope . $apply ( ) ;
135
135
//eventSources should auto update inside the calendar.
136
136
var fullCalendarParam = $ . fn . fullCalendar . mostRecentCall . args [ 0 ] ;
137
- expect ( fullCalendarParam ) . toEqual ( 'rerenderEvents ' ) ;
137
+ expect ( fullCalendarParam ) . toEqual ( 'addEventSource ' ) ;
138
138
} ) ;
139
139
/* Test to see if calendar is updating when an eventSource replaces another with an equal length. */
140
140
it ( 'updates the calendar if an eventSource has same length as prior eventSource' , function ( ) {
@@ -144,23 +144,23 @@ describe('uiCalendar', function () {
144
144
//eventSources should update inside the calendar
145
145
var callCount = $ . fn . fullCalendar . callCount ;
146
146
var fullCalendarParam = $ . fn . fullCalendar . mostRecentCall . args [ 0 ] ;
147
- expect ( fullCalendarParam ) . toEqual ( 'rerenderEvents ' ) ;
147
+ expect ( fullCalendarParam ) . toEqual ( 'addEventSource ' ) ;
148
148
//fullcalendar has called 3 of its own events at this time. Remove, Add, and Rerender
149
- expect ( callCount ) . toEqual ( 4 ) ;
149
+ expect ( callCount ) . toEqual ( 3 ) ;
150
150
//remove an event to prove autobinding still works
151
151
scope . remove ( scope . events , 0 ) ;
152
152
scope . $apply ( ) ;
153
153
fullCalendarParam = $ . fn . fullCalendar . mostRecentCall . args [ 0 ] ;
154
154
callCount = $ . fn . fullCalendar . callCount ;
155
155
expect ( fullCalendarParam ) . toEqual ( 'removeEvents' ) ;
156
- expect ( callCount ) . toEqual ( 5 ) ;
156
+ expect ( callCount ) . toEqual ( 4 ) ;
157
157
} ) ;
158
158
159
159
it ( 'make sure the calendar can work with extended event sources' , function ( ) {
160
160
scope . eventSources . push ( scope . calEventsExt ) ;
161
161
scope . $apply ( ) ;
162
162
var fullCalendarParam = $ . fn . fullCalendar . mostRecentCall . args [ 0 ] ;
163
- expect ( fullCalendarParam ) . toEqual ( 'rerenderEvents ' ) ;
163
+ expect ( fullCalendarParam ) . toEqual ( 'addEventSource ' ) ;
164
164
} ) ;
165
165
166
166
it ( 'make sure that if we just change the title of the event that it updates itself' , function ( ) {
0 commit comments