mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Consistently use require('temp').track()
This commit is contained in:
@@ -508,7 +508,8 @@ describe('AtomApplication', function () {
|
||||
}
|
||||
|
||||
function makeTempDir (name) {
|
||||
return fs.realpathSync(require('temp').mkdirSync(name))
|
||||
const temp = require('temp').track()
|
||||
return fs.realpathSync(temp.mkdirSync(name))
|
||||
}
|
||||
|
||||
let channelIdCounter = 0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const TitleBar = require('../src/title-bar')
|
||||
const temp = require('temp')
|
||||
const temp = require('temp').track()
|
||||
|
||||
describe('TitleBar', () => {
|
||||
it('updates its title when document.title changes', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const {app} = require('electron')
|
||||
const nslog = require('nslog')
|
||||
const path = require('path')
|
||||
const temp = require('temp')
|
||||
const temp = require('temp').track()
|
||||
const parseCommandLine = require('./parse-command-line')
|
||||
const startCrashReporter = require('../crash-reporter-start')
|
||||
const atomPaths = require('../atom-paths')
|
||||
|
||||
Reference in New Issue
Block a user