mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-03-17 08:41:43 +03:00
add misc 400 tests
This commit is contained in:
@@ -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));
|
||||
Reference in New Issue
Block a user