Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Added test for signature and structure after obfuscation
Browse files Browse the repository at this point in the history
  • Loading branch information
yehjxraymond committed Oct 2, 2018
1 parent 61e7039 commit 6ebcb99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,11 @@ describe("E2E Test", () => {
);
expect(moreObfuscation.privacy.obfuscatedData.length).to.be.equal(3);
expect(moreObfuscation.data.recipient.did).to.not.exist;

const isValidStructure = openCert.validateSchema(moreObfuscation);
expect(isValidStructure).to.be.true;

const isValidSignature = openCert.verifySignature(moreObfuscation);
expect(isValidSignature).to.be.true;
});
});

0 comments on commit 6ebcb99

Please sign in to comment.