const { extractFromScreenshot } = require('../../src/services/ocrStub');

describe('ocrStub', () => {
  test('returns needs_confirmation: true', () => {
    const result = extractFromScreenshot('draftkings');
    expect(result.needs_confirmation).toBe(true);
    expect(result.confidence).toBe(0);
    expect(result.book).toBe('draftkings');
  });

  test('includes message for user', () => {
    const result = extractFromScreenshot('fanduel');
    expect(result.message).toContain('screenshot');
    expect(result.book).toBe('fanduel');
  });

  test('defaults book to unknown', () => {
    const result = extractFromScreenshot();
    expect(result.book).toBe('unknown');
  });
});
