import { renderToString } from 'hono/jsx/dom/server';
import { describe, expect, it } from 'vitest';
import Atom from '@/views/atom';
describe('Atom view', () => {
it('renders optional fields and media extensions', () => {
const html = renderToString(
);
expect(html).toContain('https://example.com/icon.png');
expect(html).toContain('https://example.com/logo.png');
expect(html).toContain('media:content');
expect(html).toContain('term="News"');
expect(html).toContain('term="Tech"');
expect(html).toContain('rsshub:upvotes');
expect(html).toContain('rsshub:downvotes');
expect(html).toContain('rsshub:comments');
});
});