// Session 44 — Phase 4: landing feature cards use user-facing language.

const fs = require('fs');
const path = require('path');
const src = fs.readFileSync(path.join(__dirname, '..', '..', 'web', 'src', 'components', 'Features.tsx'), 'utf8');

describe('Landing feature cards', () => {
  it('contains NO engineer-speak', () => {
    for (const jargon of ['Point-biserial', 'Zone 14', 'ABS intelligence', 'Auto-calibrating', 'framing loss', 'redistribution-aware', 'Phi-coefficient', 'blind-spot detection']) {
      expect(src).not.toContain(jargon);
    }
  });
  it('uses the rewritten user-facing titles', () => {
    expect(src).toContain('Player DNA archetypes');
    expect(src).toContain('Self-improving model');
    expect(src).toContain('Lineup intel before tip-off');
    expect(src).toContain('Deep pitcher-batter matchups');
  });
});
