Skip to content

Commit 01dbce9

Browse files
Merge pull request #2495 from airscholar/master
docs(unit-testing): added missing results declaration
2 parents 47337a2 + 2398060 commit 01dbce9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/fundamentals/unit-testing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ describe('CatsController', () => {
178178
controllers: [CatsController],
179179
})
180180
.useMocker((token) => {
181+
const results = ['test1', 'test2'];
181182
if (token === CatsService) {
182183
return { findAll: jest.fn().mockResolvedValue(results) };
183184
}

0 commit comments

Comments
 (0)