Browse Source

fix(nocodb): Fixed issue regarding getRow helper in test env where it doesnt return undefined if row id doesnt exist

pull/3727/head
Muhammed Mustafa 2 years ago
parent
commit
28f045cd4c
  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