From 14641379bcdbd1a7d33d417712bfd197031bba51 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Mon, 24 Apr 2023 11:54:56 -0400 Subject: [PATCH] add test --- .../[format=outputFormat]/Serialized.test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/routes/export/[format=outputFormat]/Serialized.test.js diff --git a/src/routes/export/[format=outputFormat]/Serialized.test.js b/src/routes/export/[format=outputFormat]/Serialized.test.js new file mode 100644 index 0000000..786b8b9 --- /dev/null +++ b/src/routes/export/[format=outputFormat]/Serialized.test.js @@ -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(); +});