chromedevtools--chrome-devtools-mcp
aa9a176956
Drive-by: refactor and improve eval scripts.
20 行
476 B
TypeScript
20 行
476 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import assert from 'node:assert';
|
|
|
|
import type {TestScenario} from '../eval_gemini.ts';
|
|
|
|
export const scenario: TestScenario = {
|
|
prompt: 'Emulate offline network conditions.',
|
|
maxTurns: 2,
|
|
expectations: calls => {
|
|
assert.strictEqual(calls.length, 1);
|
|
assert.strictEqual(calls[0].name, 'emulate');
|
|
assert.strictEqual(calls[0].args.networkConditions, 'Offline');
|
|
},
|
|
};
|