import { describe, expect, it } from 'vitest';
import BlogNotFoundBody from './BlogNotFoundBody.astro';
import { assertNotFoundHomeLink, assertNoMainElement, renderBodyComponent } from '../../test/body-component-render';

describe('BlogNotFoundBody', () => {
  it('renders h1 and home link', async () => {
    const html = await renderBodyComponent(BlogNotFoundBody);
    assertNotFoundHomeLink(html);
    assertNoMainElement(html);
    expect(html).toContain('Not found');
    expect(html).toContain('← Home');
  });
});
