From b05d21696423bca3caf478c03e4c4535f78f74f9 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Wed, 6 Nov 2024 17:19:33 -0800 Subject: [PATCH] Fixed: used wrong file name for extra_models_config.yaml. (#199) --- src/config/extra_model_config.ts | 2 +- tests/unit/extra_model_config.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/extra_model_config.ts b/src/config/extra_model_config.ts index c07a7fe4..dd3ca32d 100644 --- a/src/config/extra_model_config.ts +++ b/src/config/extra_model_config.ts @@ -4,7 +4,7 @@ import { stringify, parse } from 'yaml'; import path from 'node:path'; import { app } from 'electron'; -export const EXTRA_MODEL_CONFIG_PATH = 'extra_model_paths.yaml'; +export const EXTRA_MODEL_CONFIG_PATH = 'extra_models_config.yaml'; interface ModelPaths { comfyui: { diff --git a/tests/unit/extra_model_config.test.ts b/tests/unit/extra_model_config.test.ts index e1cfbdc8..b74006ae 100644 --- a/tests/unit/extra_model_config.test.ts +++ b/tests/unit/extra_model_config.test.ts @@ -23,7 +23,7 @@ describe('getModelConfigPath', () => { const result = await getModelConfigPath(); // Verify the path is correctly joined - expect(result).toBe(path.join(mockUserDataPath, 'extra_model_paths.yaml')); + expect(result).toBe(path.join(mockUserDataPath, 'extra_models_config.yaml')); // Verify app.getPath was called with correct argument expect(app.getPath).toHaveBeenCalledWith('userData');