Fix
This commit is contained in:
parent
fe31f88cc8
commit
063eeeb6df
|
@ -74,13 +74,13 @@ describe("/rowsActions", () => {
|
||||||
|
|
||||||
it("rejects with bad request when creating with no name", async () => {
|
it("rejects with bad request when creating with no name", async () => {
|
||||||
const rowAction: CreateRowActionRequest = {
|
const rowAction: CreateRowActionRequest = {
|
||||||
name: undefined as any,
|
name: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
await config.api.rowAction.save(table._id!, rowAction, {
|
await config.api.rowAction.save(table._id!, rowAction, {
|
||||||
status: 400,
|
status: 400,
|
||||||
body: {
|
body: {
|
||||||
message: 'Invalid body - "name" is required',
|
message: 'Invalid body - "name" is not allowed to be empty',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue