mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
test(@angular-devkit/build-optimizer): also check method metadata
This commit is contained in:
parent
0070ea46e6
commit
2962ede3e3
@ -341,6 +341,13 @@ describe('scrub-file', () => {
|
|||||||
NotInput(),
|
NotInput(),
|
||||||
__metadata("design:type", Object)
|
__metadata("design:type", Object)
|
||||||
], Clazz.prototype, "other", void 0);
|
], Clazz.prototype, "other", void 0);
|
||||||
|
Clazz.prototype.myMethod = function () { return 'bar'; };
|
||||||
|
__decorate([
|
||||||
|
myDecorator(),
|
||||||
|
__metadata("design:type", Function),
|
||||||
|
__metadata("design:paramtypes", []),
|
||||||
|
__metadata("design:returntype", void 0)
|
||||||
|
], MyClass.prototype, "myMethod", null);
|
||||||
return Clazz;
|
return Clazz;
|
||||||
}());
|
}());
|
||||||
`;
|
`;
|
||||||
@ -357,6 +364,13 @@ describe('scrub-file', () => {
|
|||||||
NotInput(),
|
NotInput(),
|
||||||
__metadata("design:type", Object)
|
__metadata("design:type", Object)
|
||||||
], Clazz.prototype, "other", void 0);
|
], Clazz.prototype, "other", void 0);
|
||||||
|
Clazz.prototype.myMethod = function () { return 'bar'; };
|
||||||
|
__decorate([
|
||||||
|
myDecorator(),
|
||||||
|
__metadata("design:type", Function),
|
||||||
|
__metadata("design:paramtypes", []),
|
||||||
|
__metadata("design:returntype", void 0)
|
||||||
|
], MyClass.prototype, "myMethod", null);
|
||||||
return Clazz;
|
return Clazz;
|
||||||
}());
|
}());
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user