Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maycon-mello committed Dec 9, 2024
1 parent 15722fb commit d1d9492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/wasm/src/services/dids/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('DID Service', () => {
it('expect to get did document', async () => {
const document = 'document';
jest
.spyOn(blockchainService.dock.did, 'getDocument')
.spyOn(blockchainService.didModule, 'getDocument')
.mockResolvedValue(document);

const result = await service.getDidDockDocument(
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm/src/services/dids/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class DIDService {
async getDidDockDocument(did) {
assert(!!did, 'DID is required');
const dock = blockchainService.dock;
const result = await dock.did.getDocument(did);
const result = await blockchainService.didModule.getDocument(did);
return result;
}

Expand Down

0 comments on commit d1d9492

Please sign in to comment.