test(subagent): document non-Error adapter rejection fixture
This commit is contained in:
1 parent
080b921b5b
commit
0948cd9809
1 file changed
+1
@@ -234,6 +234,7 @@ describe('list_subagent_models', () => {
|
||||
const adapter = new CatalogAdapter()
|
||||
vi.spyOn(adapter, 'resolveModel').mockImplementation(async (provider, model) => {
|
||||
if (model === 'removed') throw new Error('model was removed')
|
||||
// oxlint-disable-next-line typescript/prefer-promise-reject-errors -- Exercise non-Error rejections from an external adapter.
|
||||
if (model === 'unavailable') return Promise.reject('metadata unavailable')
|
||||
return { provider, id: model, name: 'Plain' }
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user