Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

374 B
Raw Blame
import { expect, it } from 'vitest';

import { normalizeTaskInput } from './normalize';

it('strips retired fields from old inputs and preserves the supported instruction', () => {
  const task = normalizeTaskInput({ instruction: 'Launch', legacyProjectAlias: 'OLD' });
  expect(task).not.toHaveProperty('legacyProjectAlias');
  expect(task.instruction).toBe('Launch');
});