File tree 1 file changed +13
-6
lines changed
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', () => {
93
93
expect ( tags . oneLine `${ result } ` ) . toEqual ( tags . oneLine `${ output } ` ) ;
94
94
} ) ;
95
95
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' , ( ) => {
99
97
const rootProvided = {
100
- 'root-provided-service' : `
98
+ 'root-provided-service.ts ' : `
101
99
@Injectable({
102
100
providedIn: 'root'
103
101
})
104
102
export class RootProvidedService {
105
-
106
103
constructor() { }
107
104
}
108
105
` ,
@@ -117,7 +114,17 @@ describe('Constructor Parameter Transformer', () => {
117
114
}
118
115
` ;
119
116
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
+ ` ;
121
128
122
129
const result = transform ( input , rootProvided ) ;
123
130
You can’t perform that action at this time.
0 commit comments