import { describe, it, expect } from 'vitest';
import { planStatusFromRun } from '../plan-store.js';

describe('planStatusFromRun', () => {
  it('maps completed to completed', () => {
    expect(planStatusFromRun('completed')).toBe('completed');
  });

  it('maps failed to failed', () => {
    expect(planStatusFromRun('failed')).toBe('failed');
  });

  it('maps cancelled to cancelled', () => {
    expect(planStatusFromRun('cancelled')).toBe('cancelled');
  });
});
