Skip to content
Snippets Groups Projects
Commit 56991f4f authored by Berend Sliedrecht's avatar Berend Sliedrecht
Browse files

test(ssi): use mockResolvedValue


Signed-off-by: default avatarBerend Sliedrecht <berend@animo.id>
parent ff4a33e2
No related branches found
No related tags found
1 merge request!2test(ssi): added integration and unit tests
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -24,7 +24,7 @@ describe('AgentController', () => {
const result = { id: 'test' };
jest
.spyOn(agentService, 'getPublicDid')
.mockImplementation(() => Promise.resolve(result));
.mockResolvedValue(result)
expect(await agentController.publicDid()).toBe(result);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment