Browse Source

test: remove duplicate unit test

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4700/head
Pranav C 2 years ago
parent
commit
a628ff17d5
  1. 14
      packages/nocodb/tests/unit/rest/tests/attachment.test.ts

14
packages/nocodb/tests/unit/rest/tests/attachment.test.ts

@ -29,7 +29,7 @@ function attachmentTests() {
const response = await request(context.app) const response = await request(context.app)
.post('/api/v1/db/storage/upload') .post('/api/v1/db/storage/upload')
.attach('files', FILE_PATH) .attach('files', FILE_PATH)
// .set('xc-auth', context.token) .set('xc-auth', context.token)
.expect(200) .expect(200)
@ -48,18 +48,6 @@ function attachmentTests() {
expect(msg).to.be.eq('Unauthorized') 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 () => { it('Upload file - Org level viewer', async () => {
// signup a user // signup a user

Loading…
Cancel
Save