fix(review): fix misleading test name and comment

Rename "should use unknown when model is not available" to
"when getModel returns undefined" — the mock config does define
getModel, it just returns undefined.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
wenshao 2026-04-06 23:47:59 +08:00
parent 3ac54581a8
commit 71733b5dcb

View file

@ -150,12 +150,12 @@ describe('BundledSkillLoader', () => {
});
});
it('should use "unknown" when model is not available for {{model}}', async () => {
it('should use "unknown" for {{model}} when getModel returns undefined', async () => {
const skill = makeSkill({
body: 'Review by {{model}}',
});
mockSkillManager.listSkills.mockResolvedValue([skill]);
// No getModel on config
// getModel returns undefined (default mock behavior)
const loader = new BundledSkillLoader(mockConfig);
const commands = await loader.loadCommands(signal);