IOP-Patho/vendor/bower-asset/fullcalendar/tests/automated/toolbar/title.js

21 lines
567 B
JavaScript
Raw Normal View History

2025-07-17 08:28:28 +00:00
import { getTitleText } from './ToolbarUtils'
describe('calendar title', function() {
pushOptions({
now: '2017-03-29'
})
describe('when switching to and from a view', function() {
it('updates the title at each switch', function() {
initCalendar({
defaultView: 'month'
})
expect(getTitleText()).toBe('March 2017')
currentCalendar.changeView('agendaWeek')
expect(getTitleText()).toBe('Mar 26 Apr 1, 2017')
currentCalendar.changeView('month')
expect(getTitleText()).toBe('March 2017')
})
})
})