1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00
This commit is contained in:
Adria Navarro 2024-07-10 15:49:13 +02:00
parent fe31f88cc8
commit 063eeeb6df

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',
},
})
})