Browse Source

test: Update api test correction

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

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

@ -811,7 +811,7 @@ describe('{Auth, CRUD, HasMany, Belongs} Tests', () => {
.set('xc-auth', token)
.send({
query: `mutation{ countryUpdate( id : "${COUNTRY_ID}", data : { country: "abcd" }) } `
query: `mutation{ countryUpdate( id : "${COUNTRY_ID}", data : { country: "abcd" }){ country } } `
})
.expect(200, function (err, res) {
if (err) done(err);

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

@ -425,7 +425,7 @@ describe('{Auth, CRUD, HasMany, Belongs} Tests', () => {
.send({country: COUNTRY_NAME + 'a'})
.expect(200, (err, res) => {
if (err) done(err)
expect(res.body).to.be.equal(1);
expect(res.body).to.be.a('object');
request(app)
.get(`/nc/${projectId}/api/v1/country/` + (dbConfig.client === 'mssql' ? COUNTRY_ID_RET :COUNTRY_ID))
.set('xc-auth', token)

Loading…
Cancel
Save