diff options
author | 2020-10-12 17:56:49 +0100 | |
---|---|---|
committer | 2020-10-12 17:56:49 +0100 | |
commit | 3adfb0db3493a55276b126bdbcb343da89218601 (patch) | |
tree | e65af73279eb7a4379652d8d664cbfd2e6a9880c /src/tests/api/forms.test.ts | |
parent | Merge pull request #24 from python-discord/sentry/remove-tracing (diff) |
Add many new tests
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; |