import { describe, expect, it } from 'vitest';
import { PRODUCT_ID, productConfig } from './product-config.js';

describe('product-config', () => {
  it('exports PRODUCT_ID as clawcowork', () => {
    expect(PRODUCT_ID).toBe('clawcowork');
  });

  it('exports productConfig with correct fields', () => {
    expect(productConfig.productId).toBe('clawcowork');
    expect(productConfig.displayName).toBe('Claw Cowork');
    expect(productConfig.backendPort).toBe(4009);
    expect(productConfig.platforms).toContain('macos');
    expect(productConfig.platforms).toContain('linux');
    expect(productConfig.platforms).toContain('windows');
  });

  it('productConfig.productId matches PRODUCT_ID', () => {
    expect(productConfig.productId).toBe(PRODUCT_ID);
  });
});
