"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/__tests__/src/event-render/event-render-hooks.ts" between
fullcalendar-5.9.0.tar.gz and fullcalendar-5.10.0.tar.gz

About: FullCalendar is a full-sized drag & drop JavaScript event calendar.

event-render-hooks.ts  (fullcalendar-5.9.0):event-render-hooks.ts  (fullcalendar-5.10.0)
skipping to change at line 105 skipping to change at line 105
dayGridWeek: { dayGridWeek: {
eventContent() { eventContent() {
let eventWrapper = document.createElement('div') let eventWrapper = document.createElement('div')
eventWrapper.innerText = 'test dayGridWeek' eventWrapper.innerText = 'test dayGridWeek'
let arrayOfDomNodes = [eventWrapper] let arrayOfDomNodes = [eventWrapper]
return { domNodes: arrayOfDomNodes } return { domNodes: arrayOfDomNodes }
}, },
}, },
}, },
events: [ events: [
{ start: '2021-01-07' }, { start: '2021-01-07', title: 'default title' },
], ],
}) })
calendar.changeView('dayGridMonth') // can do without error?
let dayGrid = new DayGridViewWrapper(calendar).dayGrid
let eventEl = dayGrid.getEventEls()[0]
expect(eventEl.innerText.trim()).toBe('test dayGridWeek')
calendar.changeView('dayGridMonth')
dayGrid = new DayGridViewWrapper(calendar).dayGrid
eventEl = dayGrid.getEventEls()[0]
expect(eventEl.innerText.trim()).toBe('default title')
}) })
}) })
 End of changes. 2 change blocks. 
2 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)