Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <timo@animo.id>
  • Loading branch information
TimoGlastra committed Jul 21, 2022
1 parent 1589945 commit 351d435
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ describe('W3cCredentialService', () => {
})
})
})

describe('removeCredentialRecord', () => {
it('should remove a credential', async () => {
const credential = JsonTransformer.fromJSON(
Expand All @@ -494,9 +495,10 @@ describe('W3cCredentialService', () => {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
await w3cCredentialService.removeCredentialRecord(agentContext, credential.id!)

expect(w3cCredentialRepositoryDeleteMock).toBeCalledWith(w3cCredentialRecord)
expect(w3cCredentialRepositoryDeleteMock).toBeCalledWith(agentContext, w3cCredentialRecord)
})
})

describe('getAllCredentialRecords', () => {
it('should retrieve all W3cCredentialRecords', async () => {
const credential = JsonTransformer.fromJSON(
Expand Down

0 comments on commit 351d435

Please sign in to comment.