Skip to content

Commit

Permalink
Fixed: used wrong file name for extra_models_config.yaml. (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang authored Nov 7, 2024
1 parent 8b36251 commit b05d216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/extra_model_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/extra_model_config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit b05d216

Please sign in to comment.