File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
packages/ngtools/webpack/src/transformers Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -93,16 +93,13 @@ describe('Constructor Parameter Transformer', () => {
9393 expect ( tags . oneLine `${ result } ` ) . toEqual ( tags . oneLine `${ output } ` ) ;
9494 } ) ;
9595
96- // The current testing infrastructure does not support this test
97- // Aliased TS symbols are resolved to 'unknown'
98- xit ( 'records class name of root-provided injectable in imported module' , ( ) => {
96+ it ( 'records class name of root-provided injectable in imported module' , ( ) => {
9997 const rootProvided = {
100- 'root-provided-service' : `
98+ 'root-provided-service.ts ' : `
10199 @Injectable({
102100 providedIn: 'root'
103101 })
104102 export class RootProvidedService {
105-
106103 constructor() { }
107104 }
108105 ` ,
@@ -117,7 +114,17 @@ describe('Constructor Parameter Transformer', () => {
117114 }
118115 ` ;
119116
120- const output = `export class MyService { constructor(v) { } } MyService.ctorParameters = () => [ { type: RootProvidedService } ];` ;
117+ const output = `
118+ import * as tslib_1 from "tslib";
119+ import { RootProvidedService } from './root-provided-service';
120+
121+ let MyService = class MyService {
122+ constructor(v) { }
123+ };
124+ MyService.ctorParameters = () => [ { type: RootProvidedService } ];
125+ MyService = tslib_1.__decorate([ Injectable() ], MyService);
126+ export { MyService };
127+ ` ;
121128
122129 const result = transform ( input , rootProvided ) ;
123130
You can’t perform that action at this time.
0 commit comments