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.
2 parents 05f8d9a + a41a5e9 commit 714cdd3Copy full SHA for 714cdd3
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