Make the second argument to node-temp.path optional.

This commit is contained in:
Karl-Aksel Puulmann
2016-01-05 16:24:54 +02:00
parent 419793fb79
commit 91f0e294e4
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -67,6 +67,8 @@ function testMkdirSync() {
function testPath() {
const p = temp.path({ suffix: "justSuffix" }, "defaultPrefix");
p.length;
const p2: string = temp.path("prefix");
const p3: string = temp.path({ prefix: "prefix" });
}
function testTrack() {