Skip to content

Commit 90ebcf4

Browse files
committed
chore: fix unit
1 parent d30e4a0 commit 90ebcf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cli/src/__tests__/commands/lint.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
logger,
88
type Totals,
99
type NormalizedProblem,
10+
loadConfig,
1011
} from '@redocly/openapi-core';
1112
import {
1213
getFallbackApisOrExit,
@@ -192,9 +193,9 @@ describe('handleLint', () => {
192193
expect(processExitMock).toHaveBeenCalledWith(1);
193194
});
194195

195-
it('should use recommended fallback if there is no config', async () => {
196+
it('should suggest recommended fallback if there is no config', async () => {
196197
vi.mocked(loadConfigAndHandleErrors).mockImplementation(async () => {
197-
return await createConfig();
198+
return await loadConfig({});
198199
});
199200
await commandWrapper(handleLint)(argvMock);
200201
expect(logger.info).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)