Skip to content

Commit

Permalink
Add attachments property to event test
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
  • Loading branch information
Mikhail Sazanov committed Jun 6, 2022
1 parent 0ae8fb0 commit 43ff211
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/javascript/unit/models/event.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDefaultRecurrenceRuleObject).toHaveBeenCalledTimes(1)
Expand Down Expand Up @@ -119,6 +120,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
otherProp: 'foo',
})

Expand Down Expand Up @@ -168,6 +170,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -235,6 +238,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: []
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -301,6 +305,7 @@ describe('Test suite: Event model (models/event.js)', () => {
],
customColor: null,
categories: [],
attachments: [],
})

const alarms = eventComponent.getAlarmList()
Expand Down Expand Up @@ -354,6 +359,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: ['BUSINESS', 'HUMAN RESOURCES'],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -409,6 +415,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: '#eeffee',
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -467,6 +474,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -522,6 +530,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -574,6 +583,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -626,6 +636,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -682,6 +693,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -737,6 +749,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -790,6 +803,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down Expand Up @@ -846,6 +860,7 @@ describe('Test suite: Event model (models/event.js)', () => {
alarms: [],
customColor: null,
categories: [],
attachments: [],
})

expect(getDateFromDateTimeValue).toHaveBeenCalledTimes(2)
Expand Down

0 comments on commit 43ff211

Please sign in to comment.