MCPcopy Index your code
hub / github.com/callstack/agent-device / assertCommandSupport

Function assertCommandSupport

src/core/__tests__/capabilities.test.ts:68–78  ·  view source on GitHub ↗
(commands: string[], checks: SupportCheck[])

Source from the content-addressed store, hash-verified

66};
67
68function assertCommandSupport(commands: string[], checks: SupportCheck[]): void {
69 for (const command of commands) {
70 for (const check of checks) {
71 assert.equal(
72 isCommandSupportedOnDevice(command, check.device),
73 check.expected,
74 `${command} ${check.label}`,
75 );
76 }
77 }
78}
79
80test('device capability matrix stays consistent across shared command groups', () => {
81 const scenarios: Array<{ commands: string[]; checks: SupportCheck[] }> = [

Callers 1

Calls 1

Tested by

no test coverage detected