From 776b5e59097580ce83174e744e3ef56f608401e3 Mon Sep 17 00:00:00 2001 From: shadrach Date: Thu, 9 Jan 2025 15:11:36 +0100 Subject: [PATCH] fix tests --- desci-server/test/integration/Attestation.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desci-server/test/integration/Attestation.test.ts b/desci-server/test/integration/Attestation.test.ts index ea03d90ad..45baad6f3 100644 --- a/desci-server/test/integration/Attestation.test.ts +++ b/desci-server/test/integration/Attestation.test.ts @@ -1679,7 +1679,7 @@ describe('Attestations Service', async () => { .set('authorization', authHeaderVal) .field('communityId', desciCommunity.id); - apiResponse = res.body.data; + apiResponse = res.body.data.data; console.log(apiResponse[0]); console.log(apiResponse[1]); console.log(apiResponse[2]); @@ -2079,7 +2079,7 @@ describe('Attestations Service', async () => { .get(`/v1/communities/${desciCommunity.id}/radar`) .set('authorization', authHeaderVal) .field('communityId', desciCommunity.id); - const radar = res1.body.data as NodeRadar[]; + const radar = res1.body.data.data as NodeRadar[]; expect(res1.status).to.equal(200); expect(radar.length).to.equal(1); const radarNode = radar[0];