|
|
@ -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); |
|
|
|