test(@angular-devkit/build-optimizer): also check method metadata

This commit is contained in:
Filipe Silva 2018-09-05 11:28:25 +01:00 committed by Alex Eagle
parent 0070ea46e6
commit 2962ede3e3

View File

@ -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;
}());
`;