From a8c7dc26d90003550f3b318f1f3151c5b13a8ce6 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 2 Jun 2014 21:26:57 +0200 Subject: [PATCH] fixed some issues --- lib/Stats.js | 2 +- test/Examples.test.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Stats.js b/lib/Stats.js index 570805a1f..8eab6c559 100644 --- a/lib/Stats.js +++ b/lib/Stats.js @@ -302,7 +302,7 @@ Stats.jsonToString = function jsonToString(obj, useColors) { var l = value.length; if(align[col] == "l") format(value); - for(; l < colSizes[col]; l++) + for(; l < colSizes[col] && col !== cols-1; l++) normal(" "); if(align[col] == "r") format(value); diff --git a/test/Examples.test.js b/test/Examples.test.js index a9ffbbd40..01b69ea1a 100644 --- a/test/Examples.test.js +++ b/test/Examples.test.js @@ -13,8 +13,10 @@ describe("Examples", function() { examples.forEach(function(examplePath) { it("should compile " + path.basename(examplePath), function(done) { var options = {}; - if(fs.existsSync(path.join(examplePath, "webpack.config.js"))) - options = require(path.join(examplePath, "webpack.config.js")); + var webpackConfigPath = path.join(examplePath, "webpack.config.js"); + webpackConfigPath = webpackConfigPath.substr(0, 1).toUpperCase() + webpackConfigPath.substr(1); + if(fs.existsSync(webpackConfigPath)) + options = require(webpackConfigPath); options.context = examplePath; options.optimize = options.optimize || {}; options.output = options.output || {};