Skip to content

Commit

Permalink
fixup! feat: allow calendar-wide transparency settings
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jul 17, 2024
1 parent d67156b commit bf7111b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions tests/javascript/unit/models/calendar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
canBePublished: false,
dav: false,
calendarObjects: [],
fetchedTimeRanges: []
fetchedTimeRanges: [],
transparency: '',
})
})

Expand Down Expand Up @@ -67,7 +68,8 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
canBePublished: false,
dav: false,
calendarObjects: [],
fetchedTimeRanges: []
fetchedTimeRanges: [],
transparency: '',
})
})

Expand All @@ -85,6 +87,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
publishURL: undefined,
enabled: true,
timezone: 'BEGIN:VCALENDAR...END:VCALENDAR',
transparency: 'opaque',
}

expect(mapDavCollectionToCalendar(cdavObject, {
Expand All @@ -107,6 +110,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: 'BEGIN:VCALENDAR...END:VCALENDAR',
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand All @@ -129,7 +133,8 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
order: undefined,
publishURL: undefined,
timezone: 'BEGIN:VCALENDAR...END:VCALENDAR',
enabled: false
transparency: 'transparent',
enabled: false,
}

expect(mapDavCollectionToCalendar(cdavObject, {
Expand All @@ -152,6 +157,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: 'BEGIN:VCALENDAR...END:VCALENDAR',
transparency: 'transparent',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -196,6 +202,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -240,6 +247,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: true,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -284,6 +292,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -328,6 +337,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -372,6 +382,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -416,6 +427,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -516,6 +528,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -632,6 +645,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: true,
timezone: null,
transparency: 'opaque',
url: '/foo/bar',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down Expand Up @@ -677,6 +691,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
supportsTasks: false,
isSharedWithMe: false,
timezone: 'BEGIN:VCALENDAR...END:VCALENDAR',
transparency: 'opaque',
url: '/remote.php/dav/calendars/admin/personal/',
calendarObjects: [],
fetchedTimeRanges: [],
Expand Down

0 comments on commit bf7111b

Please sign in to comment.