@@ -316,14 +316,14 @@ describe('useNodePricing', () => {
316
316
{ name : 'duration' , value : 'oops' } ,
317
317
{ name : 'size' , value : '720x1280' }
318
318
] )
319
- expect ( getNodeDisplayPrice ( nodeNaN ) ) . toBe ( 'Set duration (4/8/12) ' )
319
+ expect ( getNodeDisplayPrice ( nodeNaN ) ) . toBe ( 'Set model, duration & size ' )
320
320
321
321
const nodeZero = createMockNode ( 'OpenAIVideoSora2' , [
322
322
{ name : 'model' , value : 'sora-2-pro' } ,
323
323
{ name : 'duration' , value : 0 } ,
324
324
{ name : 'size' , value : '720x1280' }
325
325
] )
326
- expect ( getNodeDisplayPrice ( nodeZero ) ) . toBe ( 'Set duration (4/8/12) ' )
326
+ expect ( getNodeDisplayPrice ( nodeZero ) ) . toBe ( 'Set model, duration & size ' )
327
327
} )
328
328
329
329
it ( 'should require size when size is missing' , ( ) => {
@@ -332,9 +332,7 @@ describe('useNodePricing', () => {
332
332
{ name : 'model' , value : 'sora-2-pro' } ,
333
333
{ name : 'duration' , value : 8 }
334
334
] )
335
- expect ( getNodeDisplayPrice ( node ) ) . toBe (
336
- 'Set size (720x1280, 1280x720, 1024x1792, 1792x1024)'
337
- )
335
+ expect ( getNodeDisplayPrice ( node ) ) . toBe ( 'Set model, duration & size' )
338
336
} )
339
337
340
338
it ( 'should compute pricing for sora-2-pro with 1024x1792' , ( ) => {
@@ -365,7 +363,7 @@ describe('useNodePricing', () => {
365
363
{ name : 'size' , value : '640x640' }
366
364
] )
367
365
expect ( getNodeDisplayPrice ( node ) ) . toBe (
368
- 'Size must be 720x1280, 1280x720, 1024x1792, or 1792x1024'
366
+ 'Invalid size. Must be 720x1280, 1280x720, 1024x1792, or 1792x1024. '
369
367
)
370
368
} )
371
369
0 commit comments