Browse Source

test: update in test

pull/9660/head
Pranav C 1 month ago
parent
commit
a22e4c579f
  1. 6
      packages/nocodb/tests/unit/rest/tests/table.test.ts

6
packages/nocodb/tests/unit/rest/tests/table.test.ts

@ -48,13 +48,13 @@ function tableStaticTests() {
expect(response.body.list).to.be.an('array').not.empty; expect(response.body.list).to.be.an('array').not.empty;
}); });
it('Create table with no table name', async function () { it('Create table with no table title', async function () {
const response = await request(context.app) const response = await request(context.app)
.post(`/api/v1/db/meta/projects/${base.id}/tables`) .post(`/api/v1/db/meta/projects/${base.id}/tables`)
.set('xc-auth', context.token) .set('xc-auth', context.token)
.send({ .send({
table_name: undefined, table_name: 'new_table_name',
title: 'new_title', title: undefined,
columns: defaultColumns(context), columns: defaultColumns(context),
}) })
.expect(400); .expect(400);

Loading…
Cancel
Save