Quality Assurance and Testing with Chai - Test if a Value Falls within a Specific Range

As a reminder, this project is being built upon the following starter project on Glitch, or cloned from GitHub.

.approximately

.approximately(actual, expected, range, [message])

actual = expected +/- range

Choose the minimum range (3rd parameter) to make the test always pass

it should be less than 1