mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 02:13:48 +00:00
Refactor: require trigger in all events objects (#1636)
* reqire trigger in all events * use structuredClone when cloning an event
This commit is contained in:
committed by
GitHub
parent
02c30c9681
commit
2a5b053d97
@@ -44,6 +44,7 @@ describe('cellRequestFromEvent()', () => {
|
||||
id: '1358',
|
||||
timeWarning: 0,
|
||||
timeDanger: 0,
|
||||
triggers: [],
|
||||
custom: {},
|
||||
};
|
||||
const metadata = {
|
||||
@@ -93,6 +94,7 @@ describe('cellRequestFromEvent()', () => {
|
||||
id: '1358',
|
||||
timeWarning: 0,
|
||||
timeDanger: 0,
|
||||
triggers: [],
|
||||
custom: {},
|
||||
};
|
||||
const metadata = {
|
||||
@@ -144,6 +146,7 @@ describe('cellRequestFromEvent()', () => {
|
||||
id: '1358',
|
||||
timeWarning: 0,
|
||||
timeDanger: 0,
|
||||
triggers: [],
|
||||
custom: {},
|
||||
};
|
||||
const metadata = {
|
||||
@@ -194,6 +197,7 @@ describe('cellRequestFromEvent()', () => {
|
||||
id: '1358',
|
||||
timeWarning: 0,
|
||||
timeDanger: 0,
|
||||
triggers: [],
|
||||
custom: {},
|
||||
};
|
||||
const metadata = {
|
||||
@@ -230,6 +234,7 @@ describe('cellRequestFromEvent()', () => {
|
||||
id: '1358',
|
||||
timeWarning: 0,
|
||||
timeDanger: 0,
|
||||
triggers: [],
|
||||
custom: {},
|
||||
};
|
||||
const metadata = {
|
||||
@@ -267,6 +272,7 @@ describe('cellRequestFromEvent()', () => {
|
||||
id: '1358',
|
||||
timeWarning: 0,
|
||||
timeDanger: 0,
|
||||
triggers: [],
|
||||
custom: {},
|
||||
};
|
||||
const metadata = {
|
||||
|
||||
Reference in New Issue
Block a user