aotds-docks/src/routes/(editor)/export/Serialized.test.js

14 lines
372 B
JavaScript

import { render, waitFor } from "@testing-library/svelte";
import "@testing-library/jest-dom";
import Serialized from "./Serialized.svelte";
test("basic", () => {
const { getByText } = render(Serialized, {
props: {
data: { greeting: "hello world" },
},
});
waitFor(() => expect(getByText("hello world")).toBeInTheDocument());
});