es6 promises...
sudo npm install -g mocha
npm install
npm test
Use of 'return' when testing the promise seems to prevent the evergreen test, and handle the asynchronous call. Also stubbing not spying.
Reference
https://www.sitepoint.com/promises-in-javascript-unit-tests-the-definitive-guide/