Creates an adapter function that can be used to evaluate the current value in the scope, using the provided boolean evaluation function.
The function that will be used to evaluate the current value.
Optional
The message that will be used if the evaluation fails.
The name of the function that will be used to identify the operation.
An IScopeFn function that will evaluate the current value in the scope.
import { createEvalAdapter } from "@nevware21/tripwire";addAssertFunc("isTrue", createEvalAdapter((actual: any) => actual === true, "Expected value to be true"););assert.isTrue(true); // Passesassert.isTrue(false); // Fails Copy
import { createEvalAdapter } from "@nevware21/tripwire";addAssertFunc("isTrue", createEvalAdapter((actual: any) => actual === true, "Expected value to be true"););assert.isTrue(true); // Passesassert.isTrue(false); // Fails
0.1.0
Creates an adapter function that can be used to evaluate the current value in the scope, using the provided boolean evaluation function.