mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-12 16:10:30 +02:00
chore: format with biome (no-changelog)
This commit is contained in:
parent
61feff49f4
commit
5632d1098e
|
|
@ -250,15 +250,17 @@ export function toSpecString(handoff: PlannedHandoff): string {
|
|||
}
|
||||
}
|
||||
|
||||
export function toPlannedTaskArg(task: {
|
||||
id: string;
|
||||
title: string;
|
||||
deps: string[];
|
||||
tools?: string[];
|
||||
} & (
|
||||
| { kind: 'checkpoint'; spec: string }
|
||||
| { kind?: PlannedHandoffKind; handoff: PlannedHandoff }
|
||||
)): PlannedTaskArg {
|
||||
export function toPlannedTaskArg(
|
||||
task: {
|
||||
id: string;
|
||||
title: string;
|
||||
deps: string[];
|
||||
tools?: string[];
|
||||
} & (
|
||||
| { kind: 'checkpoint'; spec: string }
|
||||
| { kind?: PlannedHandoffKind; handoff: PlannedHandoff }
|
||||
),
|
||||
): PlannedTaskArg {
|
||||
if (task.kind === 'checkpoint') {
|
||||
return {
|
||||
id: task.id,
|
||||
|
|
|
|||
|
|
@ -62,13 +62,17 @@ function makeTask(overrides: Partial<PlannedTask> = {}): PlannedTask {
|
|||
...overrides,
|
||||
} as PlannedTask;
|
||||
}
|
||||
const kind = overrides.kind ?? ('handoff' in overrides ? overrides.handoff?.kind : undefined) ?? 'build-workflow';
|
||||
const kind =
|
||||
overrides.kind ??
|
||||
('handoff' in overrides ? overrides.handoff?.kind : undefined) ??
|
||||
'build-workflow';
|
||||
return {
|
||||
id,
|
||||
title: 'Test task',
|
||||
kind,
|
||||
deps: [],
|
||||
handoff: 'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
|
||||
handoff:
|
||||
'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
|
||||
...overrides,
|
||||
} as PlannedTask;
|
||||
}
|
||||
|
|
@ -95,13 +99,17 @@ function makeTaskRecord(overrides: Partial<PlannedTaskRecord> = {}): PlannedTask
|
|||
...overrides,
|
||||
} as PlannedTaskRecord;
|
||||
}
|
||||
const kind = overrides.kind ?? ('handoff' in overrides ? overrides.handoff?.kind : undefined) ?? 'build-workflow';
|
||||
const kind =
|
||||
overrides.kind ??
|
||||
('handoff' in overrides ? overrides.handoff?.kind : undefined) ??
|
||||
'build-workflow';
|
||||
return {
|
||||
id,
|
||||
title: 'Test task',
|
||||
kind,
|
||||
deps: [],
|
||||
handoff: 'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
|
||||
handoff:
|
||||
'handoff' in overrides && overrides.handoff ? overrides.handoff : makeHandoff(id, kind),
|
||||
status: 'planned',
|
||||
...overrides,
|
||||
} as PlannedTaskRecord;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user