Skip to content

Commit 714cdd3

Browse files
Merge pull request #2226 from topmonroe9/patch-1
Updated jest function
2 parents 05f8d9a + a41a5e9 commit 714cdd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/fundamentals/unit-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe('CatsController', () => {
176176
})
177177
.useMocker((token) => {
178178
if (token === CatsService) {
179-
return { findAll: jest.fn().mockResolveValue(results) };
179+
return { findAll: jest.fn().mockResolvedValue(results) };
180180
}
181181
if (typeof token === 'function') {
182182
const mockMetadata = moduleMocker.getMetadata(token) as MockFunctionMetadata<any, any>;

0 commit comments

Comments
 (0)