We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f8d9a commit a41a5e9Copy full SHA for a41a5e9
content/fundamentals/unit-testing.md
@@ -176,7 +176,7 @@ describe('CatsController', () => {
176
})
177
.useMocker((token) => {
178
if (token === CatsService) {
179
- return { findAll: jest.fn().mockResolveValue(results) };
+ return { findAll: jest.fn().mockResolvedValue(results) };
180
}
181
if (typeof token === 'function') {
182
const mockMetadata = moduleMocker.getMetadata(token) as MockFunctionMetadata<any, any>;
0 commit comments