Taking two timestamps (one before the function-under-test, and one after), we minimize the chance of failure.
Testing with Bats
To execute the unit tests, please run the run script:
# If you are in the `test` directory:
./run
# If you are in the root `.bash_it` directory:
test/run
The run script will automatically install Bats if it is not already present, and will then run all tests found under the test directory, including subdirectories.