Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Apr 2, 2019
1 parent 5175a39 commit 72eac6b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/automated/event-drag/from-external.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('external event dragging', function() {
defaultEventDuration: '1:30'
})

// https://github.com/fullcalendar/fullcalendar/issues/4597
it('should yield an event with an end', function(done) {
initCalendar({
defaultView: 'dayGridMonth',
Expand All @@ -54,6 +55,8 @@ describe('external event dragging', function() {

// https://github.com/fullcalendar/fullcalendar/issues/4575
it('provides eventAllow with a valid event with null start/end', function(done) {
let called = false

initCalendar({
defaultView: 'dayGridMonth',
defaultDate: '2019-04-01',
Expand All @@ -64,7 +67,7 @@ describe('external event dragging', function() {
expect(draggedEvent.title).toBe('hey')
expect(draggedEvent.start).toBe(null)
expect(draggedEvent.end).toBe(null)
done()
called = true
}
})

Expand All @@ -76,7 +79,11 @@ describe('external event dragging', function() {
})

$dragEl.simulate('drag', {
end: getDayEl('2019-04-02')
end: getDayEl('2019-04-02'),
callback() {
expect(called).toBe(true)
done()
}
})
})

Expand Down

0 comments on commit 72eac6b

Please sign in to comment.