Skip to content

Commit 049edc1

Browse files
committed
test: 💍 (imports) adjust optimize imports tests
1 parent 9e9bac5 commit 049edc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

__tests__/optimize-imports.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { actions, organizeImports } from '@ic/conductor/organize-imports-for-file';
1+
import { actions, organizeImports, organizeImportsForFile } from '@ic/conductor/organize-imports';
22
import * as config from '@ic/config';
33
import fs from 'fs';
44
import { 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
}

0 commit comments

Comments
 (0)