Browse Source

test: check nested keys in list api

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/537/head
Pranav C 3 years ago
parent
commit
35faf25a50
  1. 2
      packages/nocodb/src/__tests__/rest.test.ts

2
packages/nocodb/src/__tests__/rest.test.ts

@ -356,7 +356,7 @@ describe('{Auth, CRUD, HasMany, Belongs} Tests', () => {
if (err) done(err)
expect(res.body).to.be.a('array');
expect(Object.keys(res.body[0]).length).to.be.equal(3);
expect(res.body[0]).to.have.all.keys('country_id', 'country');
expect(res.body[0]).to.have.all.keys('country_id', 'country','cityList');
done();
});
});

Loading…
Cancel
Save