Fix deprecation warning for Mocha