import { SolvxaiClient } from './index';

describe('SolvxaiClient', () => {
  let client: SolvxaiClient;

  beforeEach(() => {
    client = new SolvxaiClient({
      baseUrl: 'https://api.example.com',
      apiKey: 'test-api-key'
    });
  });

  it('should be instantiated with correct configuration', () => {
    expect(client).toBeInstanceOf(SolvxaiClient);
  });

  it('should have all required methods', () => {
    expect(typeof client.calculatePvtProperties).toBe('function');
    expect(typeof client.calculatePbFromGor).toBe('function');
    expect(typeof client.calculateGorFromPb).toBe('function');
    expect(typeof client.calculateOilProperties).toBe('function');
    expect(typeof client.calculateGasProperties).toBe('function');
    expect(typeof client.calculateWaterProperties).toBe('function');
    expect(typeof client.calculateBhp).toBe('function');
    // New RTA methods
    expect(typeof client.calculateSuperpositionTime).toBe('function');
    expect(typeof client.calculateDerivatives).toBe('function');
    expect(typeof client.calculateSinglePhaseSuperpositionTime).toBe('function');
    expect(typeof client.calculateSinglePhaseDerivatives).toBe('function');
  });
}); 