Skip to content

Commit

Permalink
feat: ensure Relationships to be existing
Browse files Browse the repository at this point in the history
  • Loading branch information
britsta committed Dec 9, 2024
1 parent a70d917 commit 330f8e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ describe("Relationship decomposition due to Identity deletion", function () {

test("status of a previously active Relationship should be set to 'DeletionProposed' after the peer is deleted", async function () {
const activeRelationship = await sender.relationships.getActiveRelationshipToIdentity(recipient.identity.address);
expect(activeRelationship?.status).toBe(RelationshipStatus.Active);
expect(activeRelationship!.status).toBe(RelationshipStatus.Active);

await recipient.identityDeletionProcess.initiateIdentityDeletionProcess(0);
await TestUtil.runDeletionJob();

await sender.syncEverything();
const deletionProposedRelationship = await sender.relationships.getRelationshipToIdentity(recipient.identity.address);
expect(deletionProposedRelationship?.status).toBe(RelationshipStatus.DeletionProposed);
expect(deletionProposedRelationship!.status).toBe(RelationshipStatus.DeletionProposed);
});
});

0 comments on commit 330f8e9

Please sign in to comment.