feat(api): POST /ms-trophy-challenge-completed (#51808)

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Oliver Eyton-Williams
2023-11-03 10:00:55 +01:00
committed by GitHub
parent 6163330b70
commit 135812162e
8 changed files with 637 additions and 5 deletions
+9
View File
@@ -109,3 +109,12 @@ export async function seedExam(): Promise<void> {
}
});
}
export function createFetchMock({ ok = true, body = {} } = {}) {
return jest.fn().mockResolvedValue(
Promise.resolve({
ok,
json: () => Promise.resolve(body)
})
);
}