import { describe, expect, it } from 'vitest';
import * as OrdersIndex from '../index.js';

describe('orders barrel exports (F-152)', () => {
  it('re-exports the order-status email helpers used for confirmation emails', () => {
    expect(typeof OrdersIndex.sendOrderStatusEmail).toBe('function');
    expect(typeof OrdersIndex.buildOrderStatusEmail).toBe('function');
    expect(OrdersIndex.ORDER_STATE_LABELS.PAID).toBe('Pagado');
    expect(OrdersIndex.ORDER_STATE_LABELS.SHIPPED).toBe('Enviado');
  });
});
