Skip to content

Commit

Permalink
test for monthly recurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Dec 25, 2018
1 parent 59fce29 commit a199727
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/automated/datelib/rrule.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,25 @@ describe('rrule plugin', function() {
expect(events[4].start).toEqualDate('2018-10-02T13:00:00Z')
})

it('can expand monthly recurrence', function() {
initCalendar({
defaultView: 'month',
now: '2018-12-25T12:00:00',
events: [ {
rrule: {
dtstart: '2018-11-01',
freq: 'monthly',
count: 13,
bymonthday: [ 13 ]
}
} ]
})

let events = currentCalendar.getEvents()
expect(events.length).toBe(1)
expect(events[0].start).toEqualDate('2018-12-13')
})

it('expands events until a date', function() {
initCalendar({
events: [
Expand Down

0 comments on commit a199727

Please sign in to comment.