From a628ff17d5e58a4d3f1f708068505c82122661b7 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 27 Dec 2022 14:05:53 +0530 Subject: [PATCH] test: remove duplicate unit test Signed-off-by: Pranav C --- .../tests/unit/rest/tests/attachment.test.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/nocodb/tests/unit/rest/tests/attachment.test.ts b/packages/nocodb/tests/unit/rest/tests/attachment.test.ts index 5ff984d03d..29922c76ba 100644 --- a/packages/nocodb/tests/unit/rest/tests/attachment.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/attachment.test.ts @@ -29,7 +29,7 @@ function attachmentTests() { const response = await request(context.app) .post('/api/v1/db/storage/upload') .attach('files', FILE_PATH) - // .set('xc-auth', context.token) + .set('xc-auth', context.token) .expect(200) @@ -48,18 +48,6 @@ function attachmentTests() { expect(msg).to.be.eq('Unauthorized') }) - it('Upload file - Super admin', async () => { - const response = await request(context.app) - .post('/api/v1/db/storage/upload') - .attach('files', FILE_PATH) - .set('xc-auth', context.token) - .expect(200) - - const attachments = response.body - expect(attachments).to.be.an('array') - expect(attachments[0].title).to.be.eq(path.basename(FILE_PATH)) - }) - it('Upload file - Org level viewer', async () => { // signup a user