test: change constructor test

This commit is contained in:
Marcos Susaña 2025-02-26 13:55:48 -04:00
parent 958fbac02d
commit 044cc0d2e3
No known key found for this signature in database

View File

@ -138,7 +138,10 @@ describe('mix decorator', () => {
it('should handle constructor arguments', () => {
class MixinWithConstructor {
constructor(public name: string) {}
name: string;
constructor(name: string) {
this.name = name.slice(0, 2);
}
getName() {
return this.name;