Closed RobertSigma closed 4 years ago
class Test { value: number; flag: boolean; } it('tests', () => { var t = mock<Test>({value: 123, flag: false}); expect(t.value).toBe(123); expect(t.flag).toBeFalsy(); });
Running the above test fails with:
expect(received).toBeFalsy() Received: [Function mockConstructor]
Edit: Noticed that this is a duplicate of #30, for which a PR exists. Please merge it.
Will merge, shortly.
Running the above test fails with:
Edit: Noticed that this is a duplicate of #30, for which a PR exists. Please merge it.