diff options
author | 2020-12-14 13:49:14 +0200 | |
---|---|---|
committer | 2020-12-14 13:49:14 +0200 | |
commit | a43fa25ffb3c32a58f6619423bb33eb64c7d2d45 (patch) | |
tree | a8a85715f0008f1b1ce300363148f94ce62bbebd /src/tests/api/forms.test.ts | |
parent | Update LandingPage to use forms from API (diff) |
Update tests to match with changes in discovery
Diffstat (limited to 'src/tests/api/forms.test.ts')
-rw-r--r-- | src/tests/api/forms.test.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tests/api/forms.test.ts b/src/tests/api/forms.test.ts index 7c851a7..6e63965 100644 --- a/src/tests/api/forms.test.ts +++ b/src/tests/api/forms.test.ts @@ -1,11 +1,7 @@ import { getForm, getForms } from "../../api/forms"; -test('fetch a list of all forms', () => { - expect(getForms()).toBeInstanceOf(Array); -}); - test('fetch a specific form', () => { - expect(getForm("ban-appeals")).resolves.toHaveProperty("title", "Ban Appeals") + expect(getForm("ban-appeals")).resolves.toHaveProperty("name", "Ban Appeals") }); export default null; |