solvx_reservoir_tools
Version:
Client library for SolvxAI Reservoir Engineering Tools - Property of Nexa Consulting Services
31 lines (27 loc) • 1.23 kB
text/typescript
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');
});
});