@@ -5,27 +5,26 @@ describe('modelSelection', () => {
55 describe ( 'modelOptions' , ( ) => {
66 it ( 'should contain the correct model options' , ( ) => {
77 assert . ok ( Array . isArray ( FALLBACK_MODEL_OPTIONS ) , 'modelOptions should be an array' )
8- assert . strictEqual ( FALLBACK_MODEL_OPTIONS . length , 2 , 'modelOptions should have 2 items ' )
8+ assert . strictEqual ( FALLBACK_MODEL_OPTIONS . length , 1 , 'modelOptions should have 1 item ' )
99
1010 // Check that the array contains the expected models
1111 const modelIds = FALLBACK_MODEL_OPTIONS . map ( model => model . id )
1212 assert . ok ( modelIds . includes ( 'CLAUDE_SONNET_4_20250514_V1_0' ) , 'Should include claude-sonnet-4' )
13- assert . ok ( modelIds . includes ( 'CLAUDE_3_7_SONNET_20250219_V1_0' ) , 'Should include claude-3.7-sonnet' )
1413
1514 // Check that each model has the required properties
1615 FALLBACK_MODEL_OPTIONS . forEach ( model => {
1716 assert . ok ( 'id' in model , 'Model should have id property' )
1817 assert . ok ( 'name' in model , 'Model should have name property' )
18+ assert . ok ( 'description' in model , 'Model should have description property' )
1919 assert . strictEqual ( typeof model . id , 'string' , 'Model id should be a string' )
2020 assert . strictEqual ( typeof model . name , 'string' , 'Model name should be a string' )
21+ assert . strictEqual ( typeof model . description , 'string' , 'Model description should be a string' )
2122 } )
2223
2324 // Check specific model names
2425 const claudeSonnet4 = FALLBACK_MODEL_OPTIONS . find ( model => model . id === 'CLAUDE_SONNET_4_20250514_V1_0' )
25- const claudeSonnet37 = FALLBACK_MODEL_OPTIONS . find ( model => model . id === 'CLAUDE_3_7_SONNET_20250219_V1_0' )
2626
2727 assert . strictEqual ( claudeSonnet4 ?. name , 'Claude Sonnet 4' , 'claude-sonnet-4 should have correct name' )
28- assert . strictEqual ( claudeSonnet37 ?. name , 'Claude 3.7 Sonnet' , 'claude-3.7-sonnet should have correct name' )
2928 } )
3029 } )
3130} )
0 commit comments