greaterOrEqualToDuration
.greaterOrEqualToDuration()
Asserts that the tested value is greater or equal than the tested value. However, it’s often best to assert that the target is equal to its expected value.
Examples
Basic Usage
expect(largeValue).to.be.greaterOrEqualTo(smallValue);expect(smallValue).to.be.greaterOrEqualTo(smallValue);expect(largeValue).to.be.greaterOrEqualTo(smallValue);expect(largeValue).to.be.above(smallValue);With Negation
expect(smallValue).not.to.be.greaterOrEqualTo(largeValue);expect(smallValue).not.to.be.greaterOrEqualTo(largeValue);expect(smallValue).not.to.be.above(largeValue);What Failures Look Like
When the assertion fails, you’ll see a clear error message:
// This would fail:expect(largeValue).not.to.be.greaterOrEqualTo(smallValue);Modifiers
This assertion supports the following modifiers:
.not- Negates the assertion.to- Language chain (no effect).be- Language chain (no effect)