import { MetricsController } from './metrics.controller';

describe('MetricsController', () => {
  it('returns a current metrics snapshot', () => {
    const metrics = { snapshot: jest.fn(() => ({ requests: 4 })) };
    expect(new MetricsController(metrics as never).getMetrics()).toEqual({ requests: 4 });
    expect(metrics.snapshot).toHaveBeenCalledTimes(1);
  });
});
