mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
10 lines
314 B
TypeScript
10 lines
314 B
TypeScript
import { render } from "svelte/server";
|
|
import { expect } from "bun:test";
|
|
import TodoApp from "./todo-list.svelte";
|
|
|
|
expect(TodoApp).toBeTypeOf("function");
|
|
|
|
const result = render(TodoApp);
|
|
expect(result).toMatchObject({ head: expect.any(String), body: expect.any(String) });
|
|
expect(result.body).not.toBeEmpty();
|