Skip to content

Commit

Permalink
feat(verifyVc): remove comments and update test case descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
whitneypurdum committed Jul 13, 2022
1 parent 9d5e7ba commit 04f9c9f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions e2e/claims.service.e2e.ts
Expand Up @@ -183,11 +183,11 @@ jest.mock('../src/modules/messaging/messaging.service', () => {

describe('Сlaim tests', () => {
let claimsService: ClaimsService;
let signerService: SignerService; //
let signerService: SignerService;
let assetsService: AssetsService;
let domainsService: DomainsService;
let claimManager: ClaimManager;
let didRegistry: DidRegistry; //
let didRegistry: DidRegistry;
let verifiableCredentialsService: VerifiableCredentialsServiceBase;

beforeEach(async () => {
Expand All @@ -212,7 +212,6 @@ describe('Сlaim tests', () => {
({ domainsService, connectToDidRegistry, assetsService } =
await connectToCacheServer());
await domainsService.createRole({
//USE THIS TO CREATE ROLE!!!!
roleName: roleName1,
namespace,
data: roles[`${roleName1}.${root}`],
Expand Down Expand Up @@ -827,7 +826,7 @@ describe('Сlaim tests', () => {
});
};

test('verifyVc should verify a credential with no errors if the Issuer is authorized', async () => {
test('verifyVc should verify a VC with no errors if the issuer is authorized', async () => {
await signerService.connect(rootOwner, ProviderType.PrivateKey);
await domainsService.createRole({
roleName: verifyVcRole,
Expand Down Expand Up @@ -887,9 +886,8 @@ describe('Сlaim tests', () => {
expect(result.isVerified).toBeTruthy;
expect(claimsService.verifyVc).toHaveBeenCalled;
});
test('resolveAndVerify should verify an issued off chain claim', async () => {
test('resolveAndVerify should resolve an EIP191JWT and verify the claim', async () => {
const roleName = `${verifyOffChainClaimRole}.${root}`;
//CREATE CLAIM REQUEST AND ISSUE CLAIM RESQUEST
await domainsService.createRole({
roleName: verifyOffChainClaimRole,
namespace,
Expand All @@ -903,7 +901,7 @@ describe('Сlaim tests', () => {
claimType: roleName,
registrationTypes: [
RegistrationTypes.OnChain,
RegistrationTypes.OffChain, // role type issuer should have offchain claim
RegistrationTypes.OffChain,
],
publishOnChain: true,
issuerFields: [],
Expand Down Expand Up @@ -958,7 +956,6 @@ describe('Сlaim tests', () => {
{ document: { id: assetDID }, id: assetDID },
]);
const claimType = 'test claim';
//CLAIM URL!!!!
const claimUrl = await claimsService.createSelfSignedClaim({
data: { claimType },
subject: assetDID,
Expand Down

0 comments on commit 04f9c9f

Please sign in to comment.