diff --git a/test/acceptance/file-utils.spec.js b/test/acceptance/file-utils.spec.js index 12dbddf878..540589821d 100644 --- a/test/acceptance/file-utils.spec.js +++ b/test/acceptance/file-utils.spec.js @@ -8,7 +8,7 @@ var mkdirp = require('mkdirp'); var rimraf = require('rimraf'); describe('file utils', function () { - var tmpDir = path.join(os.tmpDir(), 'mocha-file-lookup'); + var tmpDir = path.join(os.tmpdir(), 'mocha-file-lookup'); var existsSync = fs.existsSync; var tmpFile = path.join.bind(path, tmpDir); var symlinkSupported = false; diff --git a/test/integration/reporters.spec.js b/test/integration/reporters.spec.js index 15b7e6533b..19b4d8e30c 100644 --- a/test/integration/reporters.spec.js +++ b/test/integration/reporters.spec.js @@ -36,7 +36,7 @@ describe('reporters', function () { describe('xunit', function () { it('prints test cases with --reporter-options output (issue: 1864)', function (done) { var randomStr = crypto.randomBytes(8).toString('hex'); - var tmpDir = os.tmpDir().replace(new RegExp(path.sep + '$'), ''); + var tmpDir = os.tmpdir().replace(new RegExp(path.sep + '$'), ''); var tmpFile = tmpDir + path.sep + 'test-issue-1864-' + randomStr + '.xml'; var args = ['--reporter=xunit', '--reporter-options', 'output=' + tmpFile];