mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 22:24:11 +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
Carlos Valente
parent
b640e0e181
commit
90870ecfb6
@@ -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