import { describe, expect, it, vi } from 'vitest';
import { getPlatformStats } from '@/shared/api/platform';
import { apiRequest } from '@/shared/api/httpClient';

vi.mock('@/shared/api/httpClient', () => ({
  apiRequest: vi.fn(),
}));

describe('platform API', () => {
  it('loads platform stats', async () => {
    vi.mocked(apiRequest).mockResolvedValueOnce({});

    await getPlatformStats();

    expect(apiRequest).toHaveBeenCalledWith('/platform/stats');
  });
});
