Skip to content

Commit

Permalink
chore: remove duplicate dependencies section from package.json
Browse files Browse the repository at this point in the history
chore: update rimraf to latest version
  • Loading branch information
silkentrance committed Mar 19, 2019
1 parent 150ab4e commit 5591fdf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -22,9 +22,8 @@
"node": ">=6"
},
"dependencies": {
"rimraf": "^2.6.2"
"rimraf": "^2.6.3"
},
"dependencies": {},
"devDependencies": {
"eslint": "^4.19.1",
"eslint-plugin-mocha": "^5.0.0",
Expand Down
4 changes: 4 additions & 0 deletions test/file-sync-test.js
Expand Up @@ -44,6 +44,10 @@ describe('tmp', function () {
});

describe('when running issue specific inband tests', function () {
it('on issue #182: should not replace empty postfix with ".tmp"', function () {
const tmpobj = tmp.fileSync({ postfix: '' });
assert.ok(!tmpobj.name.endsWith('.tmp'));
});
});

describe('when running standard outband tests', function () {
Expand Down
10 changes: 10 additions & 0 deletions test/file-test.js
Expand Up @@ -54,6 +54,16 @@ describe('tmp', function () {
});

describe('when running issue specific inband tests', function () {
it('on issue #182: should not replace empty postfix with ".tmp"', function (done) {
tmp.file({ postfix: '' }, function (err, path) {
try {
assert.ok(!path.endsWith('.tmp'));
} catch (err) {
return done(err);
}
done();
});
});
});

describe('when running standard outband tests', function () {
Expand Down

0 comments on commit 5591fdf

Please sign in to comment.