niix/haversine — pull request #7 by benharold (2014-10-07 19:41:53+00:00)
Title: fix unit tests for haversine function

While I was adapting this handy script to my AngularJS project, I noticed that the unit tests didn't make a whole lot of sense to me. For starters, the options object wasn't being passed to the haversine function. Also, default units are in km, not miles, so only the first test needs the options parameter.