feat(pages): add /application/guilds/join
(#2)
This commit is contained in:
33
cypress/fixtures/guilds/public/get.ts
Normal file
33
cypress/fixtures/guilds/public/get.ts
Normal file
@ -0,0 +1,33 @@
|
||||
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 }]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user