Update mocha.js

Fix strange repeat output in spm test