diff options
author | 2020-10-12 18:01:50 +0100 | |
---|---|---|
committer | 2020-10-12 18:01:50 +0100 | |
commit | 24d2daa318c412ffb0ec7c67328bd3fb5d6afe30 (patch) | |
tree | 91b9ac7c643b5698ad0b75ddfac8524545658e5d /src/tests/api | |
parent | Merge pull request #24 from python-discord/sentry/remove-tracing (diff) | |
parent | Use location instead of document.location in callback (diff) |
Merge pull request #25 from python-discord/tests/increase-coverage
Increase test coverage
Diffstat (limited to 'src/tests/api')
-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; |