From aed52c293530ff1c6c8c4db876990b63695fe8e8 Mon Sep 17 00:00:00 2001 From: Joshua David Date: Sun, 11 Aug 2024 18:57:39 +1000 Subject: [PATCH] chore: format tests --- applications/app/src/views/home/HomeView.test.tsx | 1 + templates/react-application/src/App.test.tsx | 1 + templates/solid-application/src/App.test.tsx | 1 + 3 files changed, 3 insertions(+) diff --git a/applications/app/src/views/home/HomeView.test.tsx b/applications/app/src/views/home/HomeView.test.tsx index ca0afbf32..8e483a4a0 100644 --- a/applications/app/src/views/home/HomeView.test.tsx +++ b/applications/app/src/views/home/HomeView.test.tsx @@ -6,6 +6,7 @@ import { HomeView } from "./HomeView"; describe("home-view", () => { it("exists", async () => { render(); + await expect( screen.findByText("Hello, World!"), ).resolves.toBeInTheDocument(); diff --git a/templates/react-application/src/App.test.tsx b/templates/react-application/src/App.test.tsx index 8fa554f56..aa61c881b 100644 --- a/templates/react-application/src/App.test.tsx +++ b/templates/react-application/src/App.test.tsx @@ -6,6 +6,7 @@ import { App } from "./App"; describe("app", () => { it("exists", async () => { render(); + await expect( screen.findByText("Hello, World!"), ).resolves.toBeInTheDocument(); diff --git a/templates/solid-application/src/App.test.tsx b/templates/solid-application/src/App.test.tsx index b4a0cdc8c..2f335d6a4 100644 --- a/templates/solid-application/src/App.test.tsx +++ b/templates/solid-application/src/App.test.tsx @@ -6,6 +6,7 @@ import { App } from "./App"; describe("app", () => { it("exists", async () => { render(() => ); + await expect( screen.findByText("Hello, World!"), ).resolves.toBeInTheDocument();