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 59fd876 commit b51c353Copy full SHA for b51c353
test/transformer/descriptor/methods/methods.test.ts
@@ -118,10 +118,12 @@ describe('for methods', () => {
118
expect(properties.b).toBe('');
119
});
120
121
- it('should use the first overload if any', () => {
+ it('should use the overload as requested by input', () => {
122
const properties: InterfaceWithConstructSignatureOverload = createMock<InterfaceWithConstructSignatureOverload>();
123
// eslint-disable-next-line
124
- expect((new properties() as any).a).toBe(0);
+ expect((new properties(0)).a).toBe(0);
125
+ expect((new properties('')).b).toBe('');
126
+ expect((new properties()).c).toBeInstanceOf(Date);
127
128
129
0 commit comments