diff --git a/test/snapshots/params/input.txt b/test/snapshots/params/input.txt index ebc4d42..b96e077 100644 --- a/test/snapshots/params/input.txt +++ b/test/snapshots/params/input.txt @@ -4,3 +4,7 @@ class A { method1(skipped: string, @Arg() b: string) {} method2(@Arg() a: string, @Arg() b: string) {} } + +class B { + constructor(@Arg() a: string) {} +} \ No newline at end of file diff --git a/test/snapshots/params/output.txt b/test/snapshots/params/output.txt index 5b390a4..69183a0 100644 --- a/test/snapshots/params/output.txt +++ b/test/snapshots/params/output.txt @@ -8,3 +8,8 @@ class A { _decorate([__param(1, Arg())], A.prototype, "method1", null); _decorate([__param(0, Arg()), __param(1, Arg())], A.prototype, "method2", null); + +let B = class B { + constructor(a: string) {} +}; +B = _decorate([__param(0, Arg())], B); \ No newline at end of file