test: align opencode project evidence notes
This commit is contained in:
parent
665fff14b5
commit
2c286a453e
2 changed files with 3 additions and 1 deletions
|
|
@ -580,7 +580,7 @@ function isOpenCodeProjectEvidenceMissingDiagnostic(value: string): boolean {
|
||||||
|
|
||||||
function isOpenCodeProjectEvidenceMissingPrepareFailure(
|
function isOpenCodeProjectEvidenceMissingPrepareFailure(
|
||||||
prepare: TeamRuntimePrepareResult
|
prepare: TeamRuntimePrepareResult
|
||||||
): prepare is TeamRuntimePrepareResult & { ok: false } {
|
): boolean {
|
||||||
if (prepare.ok || prepare.reason !== 'e2e_missing') {
|
if (prepare.ok || prepare.reason !== 'e2e_missing') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -289,9 +289,11 @@ describe('runProviderPrepareDiagnostics', () => {
|
||||||
|
|
||||||
expect(result.status).toBe('notes');
|
expect(result.status).toBe('notes');
|
||||||
expect(result.details).toEqual([
|
expect(result.details).toEqual([
|
||||||
|
projectEvidenceNote,
|
||||||
'minimax-m2.5-free - verified',
|
'minimax-m2.5-free - verified',
|
||||||
'ling-2.6-flash-free - verified',
|
'ling-2.6-flash-free - verified',
|
||||||
]);
|
]);
|
||||||
|
expect(result.details.filter((detail) => detail === projectEvidenceNote)).toHaveLength(1);
|
||||||
expect(result.warnings).toEqual([projectEvidenceNote]);
|
expect(result.warnings).toEqual([projectEvidenceNote]);
|
||||||
expect(result.modelResultsById).toEqual({
|
expect(result.modelResultsById).toEqual({
|
||||||
'opencode/minimax-m2.5-free': {
|
'opencode/minimax-m2.5-free': {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue