Browse Source

Rename tests to jsx

Kirk Trombley 3 years ago
parent
commit
3cf5b9e103

+ 8 - 3
client/src/components/util/__tests__/ApiInfo.test.js → client/src/components/util/__tests__/ApiInfo.test.jsx

@@ -1,4 +1,3 @@
-import React from "react";
 import { render, waitFor } from "@testing-library/react";
 import ApiInfo from "../ApiInfo";
 import { getStatus } from "../../../domain/apiMethods";
@@ -18,7 +17,9 @@ describe("ApiInfo", () => {
       version: "test",
     });
     const { container, getByText } = render(<ApiInfo />);
-    await waitFor(() => expect(getByText("API Version: test")).toBeInTheDocument())
+    await waitFor(() =>
+      expect(getByText("API Version: test")).toBeInTheDocument()
+    );
     expect(container.firstChild).toMatchSnapshot();
   });
 
@@ -28,7 +29,11 @@ describe("ApiInfo", () => {
       version: "test",
     });
     const { container, getByText } = render(<ApiInfo />);
-    await waitFor(() => expect(getByText("Unable to communicate with API server! Error: unhealthy")).toBeInTheDocument())
+    await waitFor(() =>
+      expect(
+        getByText("Unable to communicate with API server! Error: unhealthy")
+      ).toBeInTheDocument()
+    );
     expect(container.firstChild).toMatchSnapshot();
   });
 });

+ 0 - 0
client/src/components/util/__tests__/__snapshots__/ApiInfo.test.js.snap → client/src/components/util/__tests__/__snapshots__/ApiInfo.test.jsx.snap