|
|
@@ -12,9 +12,9 @@ describe('navLinks', function() {
|
|
|
center: 'title',
|
|
|
right: 'month,agendaWeek,agendaDay,listWeek' // affects which view is jumped to by default
|
|
|
},
|
|
|
- dayClick: function() { }
|
|
|
+ dateClick: function() { }
|
|
|
}
|
|
|
- spyOn(options, 'dayClick')
|
|
|
+ spyOn(options, 'dateClick')
|
|
|
})
|
|
|
|
|
|
describe('in month view', function() {
|
|
|
@@ -26,7 +26,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayGridNumberEl('2016-08-09'))
|
|
|
expectDayView('agendaDay', '2016-08-09')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
|
|
|
// https://github.com/fullcalendar/fullcalendar/issues/3869
|
|
|
@@ -34,7 +34,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayGridNumberEl('2016-08-09'))
|
|
|
expectDayView('agendaDay', '2016-08-09')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
currentCalendar.changeView('month')
|
|
|
$.simulateMouseClick(getDayGridNumberEl('2016-08-10'))
|
|
|
expectDayView('agendaDay', '2016-08-10')
|
|
|
@@ -45,7 +45,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayGridNumberEl('2016-08-09'))
|
|
|
expectDayView('agendaDay', '2016-08-09')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
|
|
|
it('moves to basicDay specifically', function() {
|
|
|
@@ -53,7 +53,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayGridNumberEl('2016-08-09'))
|
|
|
expectDayView('basicDay', '2016-08-09')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
|
|
|
it('executes a custom handler', function() {
|
|
|
@@ -65,7 +65,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayGridNumberEl('2016-08-09'))
|
|
|
expect(options.navLinkDayClick).toHaveBeenCalled()
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
|
|
|
describe('with weekNumbers', function() {
|
|
|
@@ -77,7 +77,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayGridClassicWeekLinks().eq(1))
|
|
|
expectWeekView('agendaWeek', '2016-08-07')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
|
|
|
it('moves to week with within-day rendering', function() {
|
|
|
@@ -85,7 +85,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayGridEmbeddedWeekLinks().eq(1))
|
|
|
expectWeekView('agendaWeek', '2016-08-07')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
})
|
|
|
|
|
|
@@ -104,7 +104,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getDayHeaderLink('2016-08-15'))
|
|
|
expectDayView('agendaDay', '2016-08-15')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
})
|
|
|
|
|
|
@@ -123,7 +123,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getListDayHeaderLink('2016-08-20'))
|
|
|
expectDayView('agendaDay', '2016-08-20')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
})
|
|
|
|
|
|
@@ -137,7 +137,7 @@ describe('navLinks', function() {
|
|
|
initCalendar(options)
|
|
|
$.simulateMouseClick(getAgendaWeekNumberLink())
|
|
|
expectWeekView('agendaWeek', '2016-08-14')
|
|
|
- expect(options.dayClick).not.toHaveBeenCalled()
|
|
|
+ expect(options.dateClick).not.toHaveBeenCalled()
|
|
|
})
|
|
|
|
|
|
it('does not have a clickable day header', function() {
|