Fixed Depreciation warning caused by mocha