Files
ontime/apps/server/src/api-data/automation/__tests__/testUtils.ts
T
2025-01-24 13:53:17 +01:00

21 lines
417 B
TypeScript

import { OSCOutput, HTTPOutput } from 'ontime-types';
export function makeOSCAction(action?: Partial<OSCOutput>): OSCOutput {
return {
type: 'osc',
targetIP: 'localhost',
targetPort: 3000,
address: 'test',
args: 'message',
...action,
};
}
export function makeHTTPAction(action?: Partial<HTTPOutput>): HTTPOutput {
return {
type: 'http',
url: 'localhost',
...action,
};
}