-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathDisplay.test.js
33 lines (17 loc) · 1008 Bytes
/
Display.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from "react";
import { render } from "@testing-library/react";
import Display from "../Display"
test("Display renders correctly", () => {
render(<Display/>);
})
test("Responds when isFetchingData is true"), () => {
}
test("Responds when isFetchingData is false"), () => {
}
///Tasks:
//1. Add in nessisary imports and values to establish the testing suite.
//2. Test that the Display component renders without any passed in props.
//3. Rebuild or copy a show test data element as used in the previous set of tests.
//4. Test that when the fetch button is pressed, the show component will display. Make sure to account for the api call and change of state in building your test.
//5. Test that when the fetch button is pressed, the amount of select options rendered is equal to the amount of seasons in your test data.
//6. Notice the optional functional prop passed in to the Display component client code. Test that when the fetch button is pressed, this function is called.