import { GET } from '@/app/api/og/route';
import { ImageResponse } from 'next/og';

jest.mock('next/og', () => ({
  ImageResponse: jest.fn(),
}));

describe('GET /api/og', () => {
  it('should return an Open Graph image', async () => {
    await GET();

    expect(ImageResponse).toHaveBeenCalled();
  });
});