Skip to main content
Version: 7.0.0

testWithinPerc()

function testWithinPerc(testValue, expectedValue, options?): void;

Expects that testValue is equal to expectedValue or optionally within percentage (defaults to .01 or 1%)

Parameters

ParameterType
testValuenumber
expectedValuenumber
options?object
options.debug?boolean
options.withinPerc?number

Returns

void