mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
test: change constructor test
This commit is contained in:
parent
958fbac02d
commit
044cc0d2e3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user