Browse Source

Merge pull request #3727 from nocodb/fix/fixed-issue-with-row-creation-in-unit-test

Fix: Fixed issue regarding getRow helper in test env where it doesnt return undefined if row id doesnt exist
pull/3755/head
Muhammed Mustafa 2 years ago committed by GitHub
parent
commit
fdb46d2e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nocodb/tests/unit/factory/row.ts

4
packages/nocodb/tests/unit/factory/row.ts

@ -29,6 +29,10 @@ const getRow = async (context, {project, table, id}) => {
.get(`/api/v1/db/data/noco/${project.id}/${table.id}/${id}`)
.set('xc-auth', context.token);
if(response.status !== 200) {
return undefined
}
return response.body;
};

Loading…
Cancel
Save