aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/api/forms.test.ts
blob: 7c851a71c6aca340e1eb26a93f10ecc873c985e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;