add misc 400 tests

This commit is contained in:
Michael C
2023-02-21 20:09:57 -05:00
parent 4b8bc418ba
commit 80de71a68f
5 changed files with 39 additions and 5 deletions

View File

@@ -73,3 +73,6 @@ export const parseActionTypes = (req: Request, fallback: ActionType[]): ActionTy
export const parseRequiredSegments = (req: Request): SegmentUUID[] | undefined =>
syntaxErrorWrapper(getRequiredSegments, req, []); // never fall back
export const validateCategories = (categories: string[]): boolean =>
categories.every((category: string) => config.categoryList.includes(category));