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/post.ts
2021-10-26 16:38:55 +02:00

21 lines
411 B
TypeScript

import { Handler } from '../handler'
import { guild } from './guild'
import { channel } from '../channels/channel'
import { memberComplete } from '../members/member'
export const postGuildsHandler: Handler = {
method: 'POST',
url: '/guilds',
response: {
statusCode: 201,
body: {
guild: {
...guild,
channels: [channel],
members: [memberComplete]
}
}
}
}