Skip to content

Commit 3e7152f

Browse files
committed
Remove call to deprecated os.tmpDir (#2802)
1 parent e249434 commit 3e7152f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/acceptance/file-utils.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var mkdirp = require('mkdirp');
88
var rimraf = require('rimraf');
99

1010
describe('file utils', function () {
11-
var tmpDir = path.join(os.tmpDir(), 'mocha-file-lookup');
11+
var tmpDir = path.join(os.tmpdir(), 'mocha-file-lookup');
1212
var existsSync = fs.existsSync;
1313
var tmpFile = path.join.bind(path, tmpDir);
1414
var symlinkSupported = false;

test/integration/reporters.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('reporters', function () {
3636
describe('xunit', function () {
3737
it('prints test cases with --reporter-options output (issue: 1864)', function (done) {
3838
var randomStr = crypto.randomBytes(8).toString('hex');
39-
var tmpDir = os.tmpDir().replace(new RegExp(path.sep + '$'), '');
39+
var tmpDir = os.tmpdir().replace(new RegExp(path.sep + '$'), '');
4040
var tmpFile = tmpDir + path.sep + 'test-issue-1864-' + randomStr + '.xml';
4141

4242
var args = ['--reporter=xunit', '--reporter-options', 'output=' + tmpFile];

0 commit comments

Comments
 (0)