mirror of https://github.com/aotds/aotds-docks.git
3 changed files with 35 additions and 32 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
import { test, expect } from "vitest"; |
||||
import { render } from "@testing-library/svelte"; |
||||
|
||||
import About from "./About.svelte"; |
||||
|
||||
test("version is present", () => { |
||||
import.meta.env.PACKAGE_VERSION = '1.2.3'; |
||||
const { queryByText } = render(About); |
||||
|
||||
expect(queryByText(/version 1.2.3/)).toBeTruthy(); |
||||
}); |
Loading…
Reference in new issue