feat: add support for files and math for messages (#5)
This commit is contained in:
BIN
cypress/fixtures/uploads/audio.mp3
Normal file
BIN
cypress/fixtures/uploads/audio.mp3
Normal file
Binary file not shown.
BIN
cypress/fixtures/uploads/download.zip
Normal file
BIN
cypress/fixtures/uploads/download.zip
Normal file
Binary file not shown.
BIN
cypress/fixtures/uploads/image.png
Normal file
BIN
cypress/fixtures/uploads/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 350 KiB |
47
cypress/fixtures/uploads/messages/get.ts
Normal file
47
cypress/fixtures/uploads/messages/get.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import { Handler } from '../../handler'
|
||||
import {
|
||||
messageExampleComplete6,
|
||||
messageExampleComplete7,
|
||||
messageExampleComplete8,
|
||||
messageExampleComplete9
|
||||
} from '../../messages/message'
|
||||
|
||||
export const getMessagesUploadsImageHandler: Handler = {
|
||||
method: 'GET',
|
||||
url: messageExampleComplete6.value as `/${string}`,
|
||||
response: {
|
||||
statusCode: 200,
|
||||
isFile: true,
|
||||
body: ['image.png']
|
||||
}
|
||||
}
|
||||
|
||||
export const getMessagesUploadsAudioHandler: Handler = {
|
||||
method: 'GET',
|
||||
url: messageExampleComplete7.value as `/${string}`,
|
||||
response: {
|
||||
statusCode: 200,
|
||||
isFile: true,
|
||||
body: ['audio.mp3']
|
||||
}
|
||||
}
|
||||
|
||||
export const getMessagesUploadsVideoHandler: Handler = {
|
||||
method: 'GET',
|
||||
url: messageExampleComplete8.value as `/${string}`,
|
||||
response: {
|
||||
statusCode: 200,
|
||||
isFile: true,
|
||||
body: ['video.mp4']
|
||||
}
|
||||
}
|
||||
|
||||
export const getMessagesUploadsDownloadHandler: Handler = {
|
||||
method: 'GET',
|
||||
url: messageExampleComplete9.value as `/${string}`,
|
||||
response: {
|
||||
statusCode: 200,
|
||||
isFile: true,
|
||||
body: ['download.zip']
|
||||
}
|
||||
}
|
BIN
cypress/fixtures/uploads/video.mp4
Normal file
BIN
cypress/fixtures/uploads/video.mp4
Normal file
Binary file not shown.
Reference in New Issue
Block a user