chore: remove unused makeActions helper from event-factory
The makeActions function was exported but never imported anywhere. All integration tests define actions inline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
90f14a6ca5
commit
578f52ddaf
|
|
@ -1,7 +1,6 @@
|
|||
import type {
|
||||
OrchestratorEvent,
|
||||
Session,
|
||||
NotifyAction,
|
||||
EventPriority,
|
||||
EventType,
|
||||
SessionStatus,
|
||||
|
|
@ -48,20 +47,3 @@ export function makeSession(overrides: Partial<Session> = {}): Session {
|
|||
...overrides,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a set of test NotifyActions.
|
||||
*/
|
||||
export function makeActions(overrides?: Partial<NotifyAction>[]): NotifyAction[] {
|
||||
const defaults: NotifyAction[] = [
|
||||
{ label: "View PR", url: "https://github.com/org/repo/pull/42" },
|
||||
{ label: "Kill Session", callbackEndpoint: "/api/sessions/app-1/kill" },
|
||||
];
|
||||
|
||||
if (!overrides) return defaults;
|
||||
|
||||
return overrides.map((o, i) => ({
|
||||
...defaults[i % defaults.length],
|
||||
...o,
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue