diff options
author | 2021-01-17 16:19:18 +0000 | |
---|---|---|
committer | 2021-01-17 16:19:18 +0000 | |
commit | c1bee9cb0efba823740095380cfcca9bf47eb196 (patch) | |
tree | 18ed06bca3d17341e9eeabc5364023b9f3ee250b /src/tests/pages | |
parent | Merge pull request #82 from python-discord/renovate/typescript-eslint-monorepo (diff) | |
parent | Centers 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.tsx | 2 | ||||
-rw-r--r-- | src/tests/pages/LandingPage.test.tsx | 6 |
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", () => { |