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/channels/[channelId]/messages/get.ts

33 lines
846 B
TypeScript
Raw Normal View History

import type { Handler } from "../../../handler"
import {
messageExampleComplete,
messageExampleComplete2,
messageExampleComplete3,
messageExampleComplete4,
messageExampleComplete5,
messageExampleComplete6,
messageExampleComplete7,
messageExampleComplete8,
messageExampleComplete9,
} from "../../../messages/message"
import { channelExample } from "../../channel"
export const getMessagesWithChannelIdHandler: Handler = {
method: "GET",
url: `/channels/${channelExample.id}/messages`,
response: {
statusCode: 200,
body: [
messageExampleComplete,
messageExampleComplete2,
messageExampleComplete3,
messageExampleComplete4,
messageExampleComplete5,
messageExampleComplete6,
messageExampleComplete7,
messageExampleComplete8,
messageExampleComplete9,
],
},
}