mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 03:34:35 +00:00
chore: increased file upload size to 100mb
This commit is contained in:
@@ -583,7 +583,7 @@ describe('drive', () => {
|
|||||||
it('should respond with Bad Request if attached file exceeds file limit', async () => {
|
it('should respond with Bad Request if attached file exceeds file limit', async () => {
|
||||||
const pathToUpload = '/my/path/code.sas'
|
const pathToUpload = '/my/path/code.sas'
|
||||||
|
|
||||||
const attachedFile = Buffer.from('.'.repeat(20 * 1024 * 1024))
|
const attachedFile = Buffer.from('.'.repeat(110 * 1024 * 1024)) // 110mb
|
||||||
|
|
||||||
const res = await request(app)
|
const res = await request(app)
|
||||||
.patch('/SASjsApi/drive/file')
|
.patch('/SASjsApi/drive/file')
|
||||||
@@ -593,7 +593,7 @@ describe('drive', () => {
|
|||||||
.expect(400)
|
.expect(400)
|
||||||
|
|
||||||
expect(res.text).toEqual(
|
expect(res.text).toEqual(
|
||||||
'File size is over limit. File limit is: 10 MB'
|
'File size is over limit. File limit is: 100 MB'
|
||||||
)
|
)
|
||||||
expect(res.body).toEqual({})
|
expect(res.body).toEqual({})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user