Skip to content

Commit c6f190c

Browse files
Merge pull request #3289 from codiophile/codiophile-patch-1
fix(unit-testing.md): Auto mocking is now appropriately typed.
2 parents 89aa53c + 3500a2b commit c6f190c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/fundamentals/unit-testing.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ describe('CatsController', () => {
186186
const mockMetadata = moduleMocker.getMetadata(
187187
token,
188188
) as MockMetadata<any, any>;
189-
const Mock = moduleMocker.generateFromMetadata(mockMetadata);
189+
const Mock = moduleMocker.generateFromMetadata(
190+
mockMetadata,
191+
) as ObjectConstructor;
190192
return new Mock();
191193
}
192194
})

0 commit comments

Comments
 (0)