You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need your help checking what's happening with the following test:
it("on successful creation delivers created service", async function() {
let anyService = new Service(...)
let serviceRepositorySpy = stubInterface<IServicesRepository>({createService: Promise.resolve(anyService)})
let createServiceUseCase = new CreateServiceUseCase(serviceRepositorySpy);
await expect(createServiceUseCase.createService(...)).to.eventually.eql(anyService)
});
But looks like the promise that I stubbed is not getting returned, but rather is returning undefined.
Is there anything missing?
Does stubInterface allow stubbing responses or should only be used to check the call count (because checking the call count is working fine for me)?
Thanks, this is great library!
The text was updated successfully, but these errors were encountered:
Hello everyone,
I need your help checking what's happening with the following test:
But looks like the promise that I stubbed is not getting returned, but rather is returning undefined.
Is there anything missing?
Does stubInterface allow stubbing responses or should only be used to check the call count (because checking the call count is working fine for me)?
Thanks, this is great library!
The text was updated successfully, but these errors were encountered: