aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/pages
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-01-17 16:19:18 +0000
committerGravatar GitHub <[email protected]>2021-01-17 16:19:18 +0000
commitc1bee9cb0efba823740095380cfcca9bf47eb196 (patch)
tree18ed06bca3d17341e9eeabc5364023b9f3ee250b /src/tests/pages
parentMerge pull request #82 from python-discord/renovate/typescript-eslint-monorepo (diff)
parentCenters Title With No Description (diff)
Merge pull request #74 from python-discord/form-rendering
Diffstat (limited to 'src/tests/pages')
-rw-r--r--src/tests/pages/FormPage.test.tsx2
-rw-r--r--src/tests/pages/LandingPage.test.tsx6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/pages/FormPage.test.tsx b/src/tests/pages/FormPage.test.tsx
index f7ecc32..62577cd 100644
--- a/src/tests/pages/FormPage.test.tsx
+++ b/src/tests/pages/FormPage.test.tsx
@@ -27,6 +27,6 @@ test("calls api method to load form", () => {
Object.defineProperty(forms, "getForm", {value: jest.fn(oldImpl)});
render(<Router><Route history={history}><FormPage /></Route></Router>);
-
+
expect(forms.getForm).toBeCalled();
});
diff --git a/src/tests/pages/LandingPage.test.tsx b/src/tests/pages/LandingPage.test.tsx
index 5635e63..e461815 100644
--- a/src/tests/pages/LandingPage.test.tsx
+++ b/src/tests/pages/LandingPage.test.tsx
@@ -17,9 +17,11 @@ const testingForm: forms.Form = {
"id": "my-question",
"name": "My Question",
"type": QuestionType.ShortText,
- "data": {}
+ "data": {},
+ required: true
}
- ]
+ ],
+ "webhook": null
};
test("renders landing page", () => {