mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 06:04:05 +00:00
refactor: fixes to custom field
This commit is contained in:
@@ -62,7 +62,7 @@ describe('createTransaction', () => {
|
||||
rundown.title = 'Another Title';
|
||||
customFields['newField'] = {
|
||||
label: 'New Field',
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'blue',
|
||||
};
|
||||
|
||||
@@ -524,12 +524,12 @@ describe('processRundown()', () => {
|
||||
const customProperties: CustomFields = {
|
||||
lighting: {
|
||||
label: 'lighting',
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'red',
|
||||
},
|
||||
sound: {
|
||||
label: 'sound',
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'red',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -197,12 +197,12 @@ describe('parseRundown()', () => {
|
||||
|
||||
const customFields: CustomFields = {
|
||||
lighting: {
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'red',
|
||||
label: 'lighting',
|
||||
},
|
||||
sound: {
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'red',
|
||||
label: 'sound',
|
||||
},
|
||||
@@ -229,7 +229,7 @@ describe('parseRundown()', () => {
|
||||
|
||||
const customFields: CustomFields = {
|
||||
lighting: {
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'red',
|
||||
label: 'lighting',
|
||||
},
|
||||
@@ -308,12 +308,12 @@ describe('handleCustomField()', () => {
|
||||
it('creates a map of where custom fields are used', () => {
|
||||
const customFields = {
|
||||
lighting: {
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'red',
|
||||
label: 'lighting',
|
||||
},
|
||||
sound: {
|
||||
type: 'string',
|
||||
type: 'text',
|
||||
colour: 'red',
|
||||
label: 'sound',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user