diff --git a/desci-server/test/integration/Attestation.test.ts b/desci-server/test/integration/Attestation.test.ts index b9da17ef..26732dce 100644 --- a/desci-server/test/integration/Attestation.test.ts +++ b/desci-server/test/integration/Attestation.test.ts @@ -367,6 +367,7 @@ describe('Attestations Service', async () => { // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -375,6 +376,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, @@ -476,6 +478,7 @@ describe('Attestations Service', async () => { // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -484,6 +487,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, @@ -579,6 +583,7 @@ describe('Attestations Service', async () => { // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -587,6 +592,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, @@ -700,6 +706,7 @@ describe('Attestations Service', async () => { // add to community entry list await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: attestationVersion.id, @@ -983,6 +990,7 @@ describe('Attestations Service', async () => { // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -991,6 +999,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, @@ -1129,6 +1138,7 @@ describe('Attestations Service', async () => { // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -1137,6 +1147,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, @@ -1269,6 +1280,7 @@ describe('Attestations Service', async () => { // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -1277,6 +1289,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, @@ -1284,6 +1297,7 @@ describe('Attestations Service', async () => { // add to local community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: localCommunity.id, attestationId: LocalReproducibilityAttestation.id, attestationVersion: localReproducibilityAttestationVersion.id, @@ -1571,6 +1585,7 @@ describe('Attestations Service', async () => { reproducibilityAttestationVersion = versions[versions.length - 1]; // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -1579,6 +1594,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, @@ -1955,6 +1971,7 @@ describe('Attestations Service', async () => { // add to community entry await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: reproducibilityAttestation.id, attestationVersion: reproducibilityAttestationVersion.id, @@ -1963,6 +1980,7 @@ describe('Attestations Service', async () => { versions = await attestationService.getAttestationVersions(openDataAttestation.id); openDataAttestationVersion = versions[versions.length - 1]; await attestationService.addCommunityEntryAttestation({ + required: true, communityId: desciCommunity.id, attestationId: openDataAttestation.id, attestationVersion: openDataAttestationVersion.id, diff --git a/desci-server/test/integration/community.test.ts b/desci-server/test/integration/community.test.ts index 46b389dd..ab5467d2 100644 --- a/desci-server/test/integration/community.test.ts +++ b/desci-server/test/integration/community.test.ts @@ -290,6 +290,7 @@ describe('Desci Communities', () => { const versions = await attestationService.getAttestationVersions(attestation.id); version = versions[versions.length - 1]; selectedAttestation = await attestationService.addCommunityEntryAttestation({ + required: true, communityId: daoCommunity.id, attestationId: attestation.id, attestationVersion: version.id, @@ -298,6 +299,7 @@ describe('Desci Communities', () => { const versions2 = await attestationService.getAttestationVersions(attestation2.id); selectedVersion = versions2[versions2.length - 1]; selectedAttestation2 = await attestationService.addCommunityEntryAttestation({ + required: true, communityId: daoCommunity.id, attestationId: attestation2.id, attestationVersion: selectedVersion.id, @@ -316,6 +318,7 @@ describe('Desci Communities', () => { try { assert(daoCommunity); await attestationService.addCommunityEntryAttestation({ + required: true, communityId: daoCommunity.id, attestationId: attestation.id, attestationVersion: version.id,