Skip to content

Commit a659df6

Browse files
committed
lost so far
1 parent 4d0797b commit a659df6

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

package-lock.json

+22-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"react-dom": "^16.13.1",
1414
"react-dropdown": "^1.7.0",
1515
"react-scripts": "3.4.1",
16-
"striptags": "^3.1.1"
16+
"striptags": "^3.1.1",
17+
"uuid": "^8.3.2"
1718
},
1819
"scripts": {
1920
"start": "react-scripts start",

src/components/Display.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const Display = (props) => {
1010
const [selectedSeason, setSelectedSeason] = useState("none");
1111

1212
const { displayFunc } = props;
13+
1314
const handleClick = () => {
1415
fetchShow().then(data => {
1516
setShow(data);

src/components/tests/Display.test.js

+11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
import React from "react";
2+
import { render } from "@testing-library/react";
3+
import Display from "../Display"
14

5+
test("Display renders correctly", () => {
6+
render(<Display/>);
7+
})
28

9+
test("Responds when isFetchingData is true"), () => {
310

11+
}
412

13+
test("Responds when isFetchingData is false"), () => {
14+
15+
}
516

617

718

0 commit comments

Comments
 (0)