Skip to content

Commit a8c7dc2

Browse files
committed
fixed some issues
1 parent 3247725 commit a8c7dc2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/Stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Stats.jsonToString = function jsonToString(obj, useColors) {
302302
var l = value.length;
303303
if(align[col] == "l")
304304
format(value);
305-
for(; l < colSizes[col]; l++)
305+
for(; l < colSizes[col] && col !== cols-1; l++)
306306
normal(" ");
307307
if(align[col] == "r")
308308
format(value);

test/Examples.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ describe("Examples", function() {
1313
examples.forEach(function(examplePath) {
1414
it("should compile " + path.basename(examplePath), function(done) {
1515
var options = {};
16-
if(fs.existsSync(path.join(examplePath, "webpack.config.js")))
17-
options = require(path.join(examplePath, "webpack.config.js"));
16+
var webpackConfigPath = path.join(examplePath, "webpack.config.js");
17+
webpackConfigPath = webpackConfigPath.substr(0, 1).toUpperCase() + webpackConfigPath.substr(1);
18+
if(fs.existsSync(webpackConfigPath))
19+
options = require(webpackConfigPath);
1820
options.context = examplePath;
1921
options.optimize = options.optimize || {};
2022
options.output = options.output || {};

0 commit comments

Comments
 (0)