Browse Source

fix/Improved unit tests

pull/3358/head
Muhammed Mustafa 2 years ago
parent
commit
7627fe48e6
  1. 4
      packages/nocodb/tests/unit/rest/tests/tableRow.test.ts

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

@ -1859,7 +1859,9 @@ function tableTest() {
.set('xc-auth', context.token) .set('xc-auth', context.token)
.expect(400); .expect(400);
if(!response.body.msg.includes("Column 'customer_id' cannot be null")){ if(!response.body.msg.includes("Column 'customer_id' cannot be null") &&
!response.body.msg.includes("Cannot add or update a child row")
){
console.log('Delete list hm with existing ref row id with non nullable clause', response.body) console.log('Delete list hm with existing ref row id with non nullable clause', response.body)
throw new Error('Wrong error message') throw new Error('Wrong error message')
} }

Loading…
Cancel
Save