add test
parent
fcdae270b7
commit
14641379bc
|
@ -0,0 +1,14 @@
|
|||
import { render } from "@testing-library/svelte";
|
||||
import "@testing-library/jest-dom";
|
||||
|
||||
import Serialized from "./Serialized.svelte";
|
||||
|
||||
test("basic", () => {
|
||||
const { getByText } = render(Serialized, {
|
||||
props: {
|
||||
data: "hello world",
|
||||
format: "json",
|
||||
},
|
||||
});
|
||||
expect(getByText("hello world")).toBeInTheDocument();
|
||||
});
|
Loading…
Reference in New Issue