aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/api/forms.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/api/forms.test.ts')
-rw-r--r--src/tests/api/forms.test.ts11
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;