Skip to content

approximately

.approximately()

Asserts that the target is a number that’s within a given +/- delta range of the given number expected. However, it’s often best to assert that the target is equal to its expected value.

Asserts that a numeric value is within a given delta range of the expected value.

Modifiers

This assertion supports the following modifiers:

  • .not - Negates the assertion
  • .to - Language chain (no effect)
  • .be - Language chain (no effect)