From be93b0b0e7c3af83debe3babded93a0ea95ec81e Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Mon, 27 Jan 2025 15:46:42 +0100 Subject: [PATCH] chore: fixed expiresAt in data store test --- .../data-store/src/__tests__/statusList.entities.test.ts | 2 +- packages/data-store/src/__tests__/statusList.store.test.ts | 2 +- .../vc-status-list-issuer/src/agent/StatusListPlugin.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/data-store/src/__tests__/statusList.entities.test.ts b/packages/data-store/src/__tests__/statusList.entities.test.ts index 7296c575..f5ef9adb 100644 --- a/packages/data-store/src/__tests__/statusList.entities.test.ts +++ b/packages/data-store/src/__tests__/statusList.entities.test.ts @@ -109,7 +109,7 @@ describe('Status list entities tests', () => { statusList.credentialIdMode = StatusListCredentialIdMode.ISSUANCE statusList.proofFormat = 'jwt' statusList.bitsPerStatus = 1 - statusList.expiresAt = '2025-01-01T00:00:00Z' + statusList.expiresAt = new Date('2025-01-01T00:00:00Z') statusList.issuer = 'did:example:123' const fromDb = await dbConnection.getRepository(OAuthStatusListEntity).save(statusList) diff --git a/packages/data-store/src/__tests__/statusList.store.test.ts b/packages/data-store/src/__tests__/statusList.store.test.ts index b2f88bf2..86bc0541 100644 --- a/packages/data-store/src/__tests__/statusList.store.test.ts +++ b/packages/data-store/src/__tests__/statusList.store.test.ts @@ -90,7 +90,7 @@ describe('Status list store tests', () => { type: StatusListType.OAuthStatusList, proofFormat: 'jwt', bitsPerStatus: 1, - expiresAt: '2025-01-01T00:00:00Z', + expiresAt: new Date('2025-01-01T00:00:00Z'), issuer: 'did:example:123', } diff --git a/packages/vc-status-list-issuer/src/agent/StatusListPlugin.ts b/packages/vc-status-list-issuer/src/agent/StatusListPlugin.ts index dd07c2f4..accd7c11 100644 --- a/packages/vc-status-list-issuer/src/agent/StatusListPlugin.ts +++ b/packages/vc-status-list-issuer/src/agent/StatusListPlugin.ts @@ -103,10 +103,10 @@ export class StatusListPlugin implements IAgentPlugin { correlationId: sl.correlationId, }) this.instances.push({ - correlationId: statusListDetails.correlationId, - id: statusListDetails.id, + correlationId: statusListDetails!.correlationId, + id: statusListDetails!.id, dataSource, - driverType: statusListDetails.driverType!, + driverType: statusListDetails!.driverType!, driverOptions: driver.getOptions(), }) }