@@ -193,6 +193,40 @@ describe('prefix-classes', () => {
193
193
expect ( tags . oneLine `${ transform ( input ) } ` ) . toEqual ( tags . oneLine `${ output } ` ) ;
194
194
} ) ;
195
195
196
+ it ( 'prefix TS 2.5 - 2.6 renamed downlevel class with extends' , ( ) => {
197
+ const input = tags . stripIndent `
198
+ var NgModuleFactory$1 = /** @class */ (function (_super) {
199
+ __extends(NgModuleFactory$$1, _super);
200
+ function NgModuleFactory$$1(moduleType) {
201
+ var _this = _super.call(this) || this;
202
+ _this.moduleType = moduleType;
203
+ return _this;
204
+ }
205
+ NgModuleFactory$$1.prototype.create = function (parentInjector) {
206
+ return new NgModuleRef$1(this.moduleType, parentInjector);
207
+ };
208
+ return NgModuleFactory$$1;
209
+ }(NgModuleFactory));
210
+ ` ;
211
+ const output = tags . stripIndent `
212
+ var NgModuleFactory$1 = /** @class */ /*@__PURE__*/ (function (_super) {
213
+ __extends(NgModuleFactory$$1, _super);
214
+ function NgModuleFactory$$1(moduleType) {
215
+ var _this = _super.call(this) || this;
216
+ _this.moduleType = moduleType;
217
+ return _this;
218
+ }
219
+ NgModuleFactory$$1.prototype.create = function (parentInjector) {
220
+ return new NgModuleRef$1(this.moduleType, parentInjector);
221
+ };
222
+ return NgModuleFactory$$1;
223
+ }(NgModuleFactory));
224
+ ` ;
225
+
226
+ expect ( testPrefixClasses ( input ) ) . toBeTruthy ( ) ;
227
+ expect ( tags . oneLine `${ transform ( input ) } ` ) . toEqual ( tags . oneLine `${ output } ` ) ;
228
+ } ) ;
229
+
196
230
it ( 'prefix TS 2.5 - 2.6 downlevel class with static variable' , ( ) => {
197
231
const input = tags . stripIndent `
198
232
var StaticTestCase = /** @class */ (function () {
0 commit comments