Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Consistently use require('temp').track()
Browse files Browse the repository at this point in the history
  • Loading branch information
smashwilson committed Aug 4, 2017
1 parent 662e2aa commit 97ffe46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion spec/main-process/atom-application.test.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/title-bar-spec.js
@@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/main-process/start.js
@@ -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')
Expand Down

0 comments on commit 97ffe46

Please sign in to comment.