1 import { makeGetRequest } from './requests'
3 function checkBadStartPagination (url: string, path: string, token?: string) {
4 return makeGetRequest({
8 query: { start: 'hello' },
9 statusCodeExpected: 400
13 function checkBadCountPagination (url: string, path: string, token?: string) {
14 return makeGetRequest({
18 query: { count: 'hello' },
19 statusCodeExpected: 400
23 function checkBadSortPagination (url: string, path: string, token?: string) {
24 return makeGetRequest({
28 query: { sort: 'hello' },
29 statusCodeExpected: 400
33 // ---------------------------------------------------------------------------
36 checkBadStartPagination,
37 checkBadCountPagination,
38 checkBadSortPagination