import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import { expect, test } from 'vitest';
import Navbar from "@components/Navbar.js"

test('Card with slots', async () => {
    const container = await AstroContainer.create();
    const result = await container.renderToString(Card, {
        slots: {
            default: 'Card content',
        },
    });

    expect(result).toContain('This is a card');
    expect(result).toContain('Card content');
});