This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/cypress/fixtures/guilds/public/get.ts

34 lines
640 B
TypeScript
Raw Normal View History

import { Handler } from '../../handler'
import { guild, guild2 } from '../guild'
export const getGuildsPublicEmptyHandler: Handler = {
method: 'GET',
url: '/guilds/public',
response: {
statusCode: 200,
body: []
}
}
export const getGuildsPublicHandler: Handler = {
method: 'GET',
url: '/guilds/public',
response: {
statusCode: 200,
body: [
{ ...guild, membersCount: 1 },
{ ...guild2, membersCount: 1 }
]
}
}
export const getGuildsPublicSearchHandler: Handler = {
method: 'GET',
url: '/guilds/public',
response: {
statusCode: 200,
body: [{ ...guild2, membersCount: 1 }]
}
}