Skip to content

Commit

Permalink
refactor: sync Claim definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jul 22, 2021
1 parent 43514b1 commit aac7af3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/cacheServerClient/cacheServerClient.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ export enum RegistrationTypes {
}

export interface Claim {
uid: string;
id: string;
requester: string;
subject: string;
claimIssuer: string[];
claimType: string;
claimTypeVersion: string;
registrationTypes: RegistrationTypes[];
token: string;
subjectAgreement?: string;
onChainProof?: string;
issuedToken?: string;
isAccepted: boolean;
createdAt: string;
parentNamespace: string;
acceptedBy?: string;
isRejected?: boolean;
namespace: string;
}

export interface Asset {
Expand Down
3 changes: 0 additions & 3 deletions test/testUtils/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ export const mockCacheClient = () => {

const mockedCachedClient = {
getRoleDefinition: jest.fn(({ namespace }: { namespace: string }) => cachedRoleDefinitions[namespace]),
// getDidDocument: jest.fn().mockImplementation(() => {
// return { service: {} };
// }),
getClaimsBySubject: jest.fn(({
did,
isAccepted,
Expand Down

0 comments on commit aac7af3

Please sign in to comment.