mirror of
https://github.com/n8n-io/n8n.git
synced 2026-12-05 17:21:04 +00:00
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
14 lines
444 B
TypeScript
14 lines
444 B
TypeScript
import {
|
|
ExecutionStatusList,
|
|
isTerminalExecutionStatus,
|
|
UNFINISHED_EXECUTION_STATUSES,
|
|
} from '../src/execution-status';
|
|
|
|
describe('UNFINISHED_EXECUTION_STATUSES', () => {
|
|
it.each(ExecutionStatusList)('should hold %s only when the status is not terminal', (status) => {
|
|
const isUnfinished = (UNFINISHED_EXECUTION_STATUSES as readonly string[]).includes(status);
|
|
|
|
expect(isUnfinished).toBe(!isTerminalExecutionStatus(status));
|
|
});
|
|
});
|