fix: Add missing mock for getMappableBaseModelsDynamic in tests (#854)

- Add getMappableBaseModelsDynamic to constants.js mocks in test files
- Remove refs/enums.json temporary file from repository

Fixes test failures introduced in previous commit.
This commit is contained in:
Will Miao
2026-03-29 00:24:20 +08:00
parent 00f5c1e887
commit 12bbb0572d
3 changed files with 2 additions and 167 deletions

View File

@@ -39,6 +39,7 @@ vi.mock('../../../static/js/utils/constants.js', () => ({
checkpoint: 'base, guide',
embedding: 'hint',
},
getMappableBaseModelsDynamic: () => ['Flux.1 D', 'Pony', 'SDXL 1.0', 'Other'],
}));
vi.mock('../../../static/js/utils/i18nHelpers.js', () => ({

View File

@@ -42,6 +42,7 @@ vi.mock('../../../static/js/utils/constants.js', () => ({
checkpoint: 'base, guide',
embedding: 'hint',
},
getMappableBaseModelsDynamic: () => [],
}));
vi.mock('../../../static/js/utils/i18nHelpers.js', () => ({