Skip to content

Commit

Permalink
Merge pull request #433 from ChALkeR/tmpdir
Browse files Browse the repository at this point in the history
use os.tmpdir() instead of os.tmpDir()
  • Loading branch information
martinheidegger committed May 14, 2016
2 parents 8bab744 + 2d9114b commit 0cc5142
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion exercises/filtered_ls/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var fs = require('fs')
, rimraf = require('rimraf')
, files = require('./file-list')

, testDir = path.join(os.tmpDir(), '_learnyounode_' + process.pid)
, testDir = path.join(os.tmpdir(), '_learnyounode_' + process.pid)


// checks that the submission file actually exists
Expand Down
2 changes: 1 addition & 1 deletion exercises/http_file_server/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var fs = require('fs')
, comparestdout = require('workshopper-exercise/comparestdout')
, wrappedexec = require('workshopper-wrappedexec')
, rndtxt = require('boganipsum')({ paragraphs: 1, sentenceMax: 1 }) + '\n'
, testFile = path.join(os.tmpDir(), '_learnyounode_' + process.pid + '.txt')
, testFile = path.join(os.tmpdir(), '_learnyounode_' + process.pid + '.txt')
, rndport = require('../../lib/rndport')


Expand Down
2 changes: 1 addition & 1 deletion exercises/make_it_modular/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var fs = require('fs')
, verify = require('./verify')
, files = require('../filtered_ls/file-list')

, testDir = path.join(os.tmpDir(), '_learnyounode_' + process.pid)
, testDir = path.join(os.tmpdir(), '_learnyounode_' + process.pid)


// checks that the submission file actually exists
Expand Down
2 changes: 1 addition & 1 deletion exercises/my_first_async_io/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var fs = require('fs')
, wrappedexec = require('workshopper-wrappedexec')
, boganipsum = require('boganipsum')

, testFile = path.join(os.tmpDir(), '_learnyounode_' + process.pid + '.txt')
, testFile = path.join(os.tmpdir(), '_learnyounode_' + process.pid + '.txt')


// checks that the submission file actually exists
Expand Down
2 changes: 1 addition & 1 deletion exercises/my_first_io/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var fs = require('fs')
, wrappedexec = require('workshopper-wrappedexec')
, boganipsum = require('boganipsum')

, testFile = path.join(os.tmpDir(), '_learnyounode_' + process.pid + '.txt')
, testFile = path.join(os.tmpdir(), '_learnyounode_' + process.pid + '.txt')


// checks that the submission file actually exists
Expand Down

0 comments on commit 0cc5142

Please sign in to comment.