Browse Source

test: isempty to isblank

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5289/head
Raju Udava 2 years ago
parent
commit
b4acc0daae
  1. 14
      packages/nocodb/tests/unit/rest/tests/tableRow.test.ts
  2. 6
      packages/nocodb/tests/unit/rest/tests/viewRow.test.ts

14
packages/nocodb/tests/unit/rest/tests/tableRow.test.ts

@ -446,7 +446,7 @@ function tableTest() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
],
};
@ -536,7 +536,7 @@ function tableTest() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
{
is_group: true,
@ -665,7 +665,7 @@ function tableTest() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
{
is_group: true,
@ -821,7 +821,7 @@ function tableTest() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
{
is_group: true,
@ -1130,7 +1130,7 @@ function tableTest() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
{
is_group: true,
@ -2129,7 +2129,9 @@ function tableTest() {
// todo: only keep generic error message once updated in noco catchError middleware
if (
!response.body.message?.includes("The column 'customer_id' cannot be null") &&
!response.body.message?.includes(
"The column 'customer_id' cannot be null"
) &&
!response.body.message?.includes("Column 'customer_id' cannot be null") &&
!response.body.message?.includes('Cannot add or update a child row') &&
!response.body.msg?.includes("Column 'customer_id' cannot be null") &&

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

@ -542,7 +542,7 @@ function viewRowTests() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
],
};
@ -659,7 +659,7 @@ function viewRowTests() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
{
is_group: true,
@ -928,7 +928,7 @@ function viewRowTests() {
fk_column_id: paymentListColumn?.id,
status: 'create',
logical_op: 'and',
comparison_op: 'notempty',
comparison_op: 'notblank',
},
{
is_group: true,

Loading…
Cancel
Save