File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { actions , organizeImports } from '@ic/conductor/organize-imports-for-file ' ;
1+ import { actions , organizeImports , organizeImportsForFile } from '@ic/conductor/organize-imports' ;
22import * as config from '@ic/config' ;
33import fs from 'fs' ;
44import { Config } from '@ic/types' ;
@@ -30,7 +30,7 @@ describe('optimizeImports', () => {
3030 const file = 'test.ts' ;
3131 let result : string ;
3232 do {
33- result = await organizeImports ( file ) ;
33+ result = await organizeImportsForFile ( file ) ;
3434 } while ( -- noOfRun > 0 ) ;
3535
3636 expect ( fs . writeFileSync ) . toHaveBeenCalledWith ( file , expected ) ;
@@ -67,7 +67,7 @@ describe('optimizeImports', () => {
6767 for ( const testCase of testCases ) {
6868 ( fs . readFileSync as any ) . mockReturnValue ( Buffer . from ( testCase ) ) ;
6969 const file = 'test.ts' ;
70- const result = await organizeImports ( file ) ;
70+ const result = await organizeImportsForFile ( file ) ;
7171 expect ( result ) . toBe ( actions . skipped ) ;
7272 expect ( fs . writeFileSync ) . not . toHaveBeenCalled ( ) ;
7373 }
You can’t perform that action at this time.
0 commit comments