Skip to content

Commit

Permalink
fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhupesh-mfsi committed Aug 30, 2024
1 parent 5e91690 commit f6a7ebd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('setUserProfile', () => {
expect(firstWrite).to.be.true;

// add new DS to the profile
const newProfile = { ...profile };
const newProfile: SignedUserProfile = { ...profile };
newProfile.profile.deliveryServices = ['ds.eth'];

//This should reject bc the subdomain already has a profile
Expand All @@ -100,8 +100,8 @@ describe('setUserProfile', () => {
);

expect(secondWrite).to.be.true;
expect(JSON.stringify(retrievedProfile)).to.be.equals(
JSON.stringify(newProfile.profile),
expect(JSON.stringify(retrievedProfile?.profile)).to.equal(
JSON.stringify(newProfile),
);
});
});

0 comments on commit f6a7ebd

Please sign in to comment.