@@ -17,14 +17,12 @@ describe('Map Imports', { concurrency: true }, () => {
1717 before ( async ( ) => {
1818 const error = mock . fn < LoggerFunction > ( ) ;
1919 const warn = mock . fn < LoggerFunction > ( ) ;
20- const info = mock . fn < LoggerFunction > ( ) ;
21- const debug = mock . fn < LoggerFunction > ( ) ;
2220
2321 mock__error = error ;
2422 mock__warn = warn ;
2523
2624 mock . module ( '@nodejs/codemod-utils/logger' , {
27- defaultExport : { error, warn, info , debug } ,
25+ defaultExport : { error, warn } ,
2826 } ) ;
2927
3028 ( { mapImports } = await import ( './map-imports.ts' ) ) ;
@@ -67,9 +65,9 @@ describe('Map Imports', { concurrency: true }, () => {
6765
6866 const { 0 : message } = mock__error . mock . calls [ 0 ] . arguments ;
6967
70- assert . match ( message as string , new RegExp ( originatingFilePath ) ) ;
71- assert . match ( message as string , / n o m a t c h / i) ;
72- assert . match ( message as string , new RegExp ( specifier ) ) ;
68+ assert . match ( message , new RegExp ( originatingFilePath ) ) ;
69+ assert . match ( message , / n o m a t c h / i) ;
70+ assert . match ( message , new RegExp ( specifier ) ) ;
7371 } ) ;
7472
7573 it ( 'unambiguous: should not change the file extension when JS file DOES exist & TS file does NOT exist' , async ( ) => {
0 commit comments