diff --git a/packages/nocodb/src/__tests__/unit/rest/tests/project.test.ts b/packages/nocodb/src/__tests__/unit/rest/tests/project.test.ts index a79c9e4118..2b3e174c80 100644 --- a/packages/nocodb/src/__tests__/unit/rest/tests/project.test.ts +++ b/packages/nocodb/src/__tests__/unit/rest/tests/project.test.ts @@ -270,6 +270,33 @@ function projectTest() { done(); }); }); + + // todo: Do compare api test + + it('Meta diff sync', (done) => { + request(app) + .get(`/api/v1/db/meta/projects/${project.id}/meta-diff`) + .set('xc-auth', token) + .send() + .expect(200, done); + }); + + it('Meta diff sync', (done) => { + request(app) + .post(`/api/v1/db/meta/projects/${project.id}/meta-diff`) + .set('xc-auth', token) + .send() + .expect(200, done); + }); + + // todo: improve test. Check whether the all the actions are present in the response and correct as well + it('Meta diff sync', (done) => { + request(app) + .get(`/api/v1/db/meta/projects/${project.id}/audits`) + .set('xc-auth', token) + .send() + .expect(200, done); + }); } export default function () {