MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / expectKeysMatch

Function expectKeysMatch

test/contract/p4-schema.test.ts:113–117  ·  view source on GitHub ↗
(value: Record<string, unknown>, allowed: Set<string>, label: string)

Source from the content-addressed store, hash-verified

111]);
112
113function expectKeysMatch(value: Record<string, unknown>, allowed: Set<string>, label: string) {
114 for (const key of Object.keys(value)) {
115 expect(allowed.has(key), `${label}: unexpected extra field "${key}"`).toBe(true);
116 }
117}
118
119function expectRequired(
120 value: Record<string, unknown>,

Callers 5

validateTestCodeFunction · 0.70
validateTestStepFunction · 0.70
validateTestStepListFunction · 0.70
validateResultSummaryFunction · 0.70
validateLatestResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected