Skip to content

Commit 4c62d39

Browse files
committed
refactor: default value is exposed to variable
1 parent 5f4a0ef commit 4c62d39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/get-test-dir.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// LICENSE : MIT
22
"use strict";
33
var normalizeDir = require("./normalize-dir");
4+
var defaultTestDir = "test/";
45
/**
56
* Return `dir/` string
67
* always suffix with `/`
@@ -13,7 +14,7 @@ function getTestDirFromPkg(pkg) {
1314
typeof pkg.directories.test === 'string') {
1415
return normalizeDir(pkg.directories.test);
1516
}
16-
return "test/"; // default value
17+
return defaultTestDir;
1718
}
1819

1920
module.exports = getTestDirFromPkg;

0 commit comments

Comments
 (0)