MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / assertScriptName

Function assertScriptName

tests/cli.test.ts:1068–1077  ·  view source on GitHub ↗
(help: string, expected: string)

Source from the content-addressed store, hash-verified

1066 }
1067
1068 function assertScriptName(help: string, expected: string): void {
1069 for (const name of scriptNames) {
1070 const pattern = new RegExp(`^\\s+${name} --slim\\s`, 'm');
1071 if (name === expected) {
1072 assert.match(help, pattern);
1073 } else {
1074 assert.doesNotMatch(help, pattern);
1075 }
1076 }
1077 }
1078
1079 const defaultCases: Array<{
1080 label: string;

Callers 1

cli.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected