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

Function expectStringOrNull

test/contract/p5-schema.test.ts:69–72  ·  view source on GitHub ↗
(v: unknown, label: string)

Source from the content-addressed store, hash-verified

67}
68
69function expectStringOrNull(v: unknown, label: string) {
70 if (v === null) return;
71 expect(typeof v, label).toBe('string');
72}
73
74function validateFixTarget(value: unknown, label = 'FixTarget'): asserts value is CliFixTarget {
75 expect(value, `${label}: must be an object`).toBeTypeOf('object');

Callers 2

validateFixTargetFunction · 0.70
validateFailureBlockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected