1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

test(upload): spec updated for file upload exceeding limit

This commit is contained in:
Saad Jutt
2022-04-02 05:51:24 +05:00
parent 9d9769eef3
commit e430bdb0d4

View File

@@ -425,7 +425,7 @@ describe('drive', () => {
it('should respond with Bad Request if attached file exceeds file limit', async () => {
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)
.post('/SASjsApi/drive/file')
@@ -435,7 +435,7 @@ describe('drive', () => {
.expect(400)
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({})
})