Files
gridpilot.gg/apps/website/lib/api/index.test.ts
2026-01-16 11:13:42 +01:00

19 lines
469 B
TypeScript

import { describe, it, expect } from 'vitest';
import { ApiClient, api } from './ApiClient';
describe('ApiClient', () => {
it('should be defined', () => {
expect(ApiClient).toBeDefined();
});
it('should create instance', () => {
const client = new ApiClient('http://test.com');
expect(client).toBeDefined();
expect(client.leagues).toBeDefined();
});
it('should have singleton instance', () => {
expect(api).toBeDefined();
});
});