mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +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(),
|
||||
__metadata("design:type", Object)
|
||||
], 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;
|
||||
}());
|
||||
`;
|
||||
@ -357,6 +364,13 @@ describe('scrub-file', () => {
|
||||
NotInput(),
|
||||
__metadata("design:type", Object)
|
||||
], 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;
|
||||
}());
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user