()
| 479 | |
| 480 | describe('scanWorkflowReferences canonical-pair detection', () => { |
| 481 | const credBlock = () => |
| 482 | blockWith([ |
| 483 | { |
| 484 | id: 'credential', |
| 485 | title: 'Account', |
| 486 | type: 'oauth-input', |
| 487 | canonicalParamId: 'credential', |
| 488 | mode: 'basic', |
| 489 | }, |
| 490 | { |
| 491 | id: 'manualCredential', |
| 492 | title: 'Account ID', |
| 493 | type: 'short-input', |
| 494 | canonicalParamId: 'credential', |
| 495 | mode: 'advanced', |
| 496 | }, |
| 497 | ]) |
| 498 | // The advanced manualCredential is a short-input escape hatch (never scanned); the basic |
| 499 | // oauth-input is the detectable member, so the "active" assertion targets the basic mode. |
| 500 | const scanBlock = (canonicalModes?: Record<string, 'basic' | 'advanced'>) => ({ |
no test coverage detected