This commit is contained in:
Adria Navarro 2024-07-10 15:49:13 +02:00
parent fe31f88cc8
commit 063eeeb6df
1 changed files with 2 additions and 2 deletions

View File

@ -74,13 +74,13 @@ describe("/rowsActions", () => {
it("rejects with bad request when creating with no name", async () => {
const rowAction: CreateRowActionRequest = {
name: undefined as any,
name: "",
}
await config.api.rowAction.save(table._id!, rowAction, {
status: 400,
body: {
message: 'Invalid body - "name" is required',
message: 'Invalid body - "name" is not allowed to be empty',
},
})
})