diff options
Diffstat (limited to 'src/tests/api/forms.test.ts')
-rw-r--r-- | src/tests/api/forms.test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/api/forms.test.ts b/src/tests/api/forms.test.ts new file mode 100644 index 0000000..7c851a7 --- /dev/null +++ b/src/tests/api/forms.test.ts @@ -0,0 +1,11 @@ +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") +}); + +export default null; |