Skip to content

Commit 2962ede

Browse files
filipesilvaalexeagle
authored andcommitted
test(@angular-devkit/build-optimizer): also check method metadata
1 parent 0070ea4 commit 2962ede

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/angular_devkit/build_optimizer/src/transforms/scrub-file_spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,13 @@ describe('scrub-file', () => {
341341
NotInput(),
342342
__metadata("design:type", Object)
343343
], Clazz.prototype, "other", void 0);
344+
Clazz.prototype.myMethod = function () { return 'bar'; };
345+
__decorate([
346+
myDecorator(),
347+
__metadata("design:type", Function),
348+
__metadata("design:paramtypes", []),
349+
__metadata("design:returntype", void 0)
350+
], MyClass.prototype, "myMethod", null);
344351
return Clazz;
345352
}());
346353
`;
@@ -357,6 +364,13 @@ describe('scrub-file', () => {
357364
NotInput(),
358365
__metadata("design:type", Object)
359366
], Clazz.prototype, "other", void 0);
367+
Clazz.prototype.myMethod = function () { return 'bar'; };
368+
__decorate([
369+
myDecorator(),
370+
__metadata("design:type", Function),
371+
__metadata("design:paramtypes", []),
372+
__metadata("design:returntype", void 0)
373+
], MyClass.prototype, "myMethod", null);
360374
return Clazz;
361375
}());
362376
`;

0 commit comments

Comments
 (0)