Skip to content

Commit

Permalink
chore: fixed expiresAt in data store test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Jan 27, 2025
1 parent eea06ce commit be93b0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/__tests__/statusList.store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}

Expand Down
6 changes: 3 additions & 3 deletions packages/vc-status-list-issuer/src/agent/StatusListPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
}
Expand Down

0 comments on commit be93b0b

Please sign in to comment.