File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,9 @@ describe('TypeChecker', () => {
309
309
} ) ;
310
310
311
311
it ( 'resolve typings files when typings meta is present' , async ( ) => {
312
- const jsfile = path . resolve ( __dirname , './fixtures-es6/typings/resolved/angular2/angular2.js' ) ;
312
+ let jsfile = path . resolve ( __dirname , './fixtures-es6/typings/resolved/angular2/angular2.js' ) ;
313
+ jsfile = ( ts as any ) . normalizePath ( jsfile ) ;
314
+
313
315
metadata = { } ;
314
316
metadata [ jsfile ] = {
315
317
typings : true
@@ -330,7 +332,9 @@ describe('TypeChecker', () => {
330
332
} ) ;
331
333
332
334
it ( 'resolves typings when typings is non-relative path' , async ( ) => {
333
- const jsfile = path . resolve ( __dirname , './fixtures-es6/typings/resolved/rxjs.js' ) ;
335
+ let jsfile = path . resolve ( __dirname , './fixtures-es6/typings/resolved/rxjs.js' ) ;
336
+ jsfile = ( ts as any ) . normalizePath ( jsfile ) ;
337
+
334
338
metadata = { } ;
335
339
metadata [ jsfile ] = {
336
340
typings : "Rx.d.ts"
You can’t perform that action at this time.
0 commit comments