Skip to content

Commit

Permalink
fix #23: upgrade to tmp 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance committed Mar 26, 2019
1 parent 7daadf4 commit b48793e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"bluebird": "^3.5.0",
"tmp": "0.0.33"
"tmp": "0.1.0"
},
"devDependencies": {
"@types/tmp": "0.0.33",
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var accessSync = require('fs').accessSync
var assert = require('assert')
var extname = require('path').extname
var existsSync = require('fs').existsSync

var tmp = require('.')

Expand All @@ -17,7 +18,7 @@ describe('withFile', function()

accessSync(filepath)
assert.strictEqual(extname(filepath), '.txt')
}, {postfix: '.txt'})
}, {discardDescriptor: true, postfix: '.txt'})
.then(function()
{
assert.throws(function()
Expand Down

0 comments on commit b48793e

Please sign in to comment.