Discourage people from using temp directly

It's better if we fs.realpathSync the path returned by the temp module.

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Antonio Scandurra
2016-08-12 17:45:56 +02:00
committed by Nathan Sobo
parent 04d8b9bb86
commit 336f6425da

View File

@@ -5,7 +5,6 @@ import dedent from 'dedent'
import electron from 'electron'
import fs from 'fs-plus'
import path from 'path'
import temp from 'temp'
import AtomApplication from '../../src/main-process/atom-application'
import parseCommandLine from '../../src/main-process/parse-command-line'
@@ -367,7 +366,7 @@ describe('AtomApplication', function () {
}
function makeTempDir (name) {
return fs.realpathSync(temp.mkdirSync(name))
return fs.realpathSync(require('temp').mkdirSync(name))
}
let channelIdCounter = 0