MCPcopy
hub / github.com/jestjs/jest / assertMin

Function assertMin

packages/diff-sequences/src/__tests__/index.test.ts:123–127  ·  view source on GitHub ↗
(name: string, val: number, min: number)

Source from the content-addressed store, hash-verified

121});
122
123const assertMin = (name: string, val: number, min: number) => {
124 if (val < min) {
125 throw new RangeError(`${name} value ${val} is less than min ${min}`);
126 }
127};
128
129const assertMax = (name: string, val: number, max: number) => {
130 if (max < val) {

Callers 3

isCommonFunction · 0.85
findCommonItemsFunction · 0.85
findCommonSubstringsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected