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 79c38ec commit 357ef46Copy full SHA for 357ef46
1 file changed
src/mock-class.ts
@@ -37,8 +37,5 @@ export function mockClass<T>(
37
{} as Mocked<T>,
38
);
39
40
- return {
41
- ...mockedObject,
42
- ...properties,
43
- };
+ return Object.assign(mockedObject, properties);
44
}
0 commit comments