diff --git a/index.js b/index.js index 07974af..41aa634 100644 --- a/index.js +++ b/index.js @@ -72,7 +72,7 @@ module.exports = function (opts) { } var fmt = '\r %s \x1b[1m\x1b[' + c + 'm%d\x1b[0m %s\x1b[K'; - var str = sprintf(fmt, ok, res.number, trimWidth(res.name, res.ok)); + var str = sprintf(fmt, ok, res.number, res.name); if (!res.ok) { var y = ++test.offset + 1; diff --git a/test/long-message/index.js b/test/long-message/index.js index db9c04d..25823eb 100644 --- a/test/long-message/index.js +++ b/test/long-message/index.js @@ -45,9 +45,9 @@ function checkFormatting(t, name, expectedExcerpt) { } test('A long successful assertion message should be cut.', function (t) { - checkFormatting(t, 'succeeded', 'should start with "Unrecogn...'); + checkFormatting(t, 'succeeded', 'should start with "Unrecogn'); }); test('A long failed assertion message should be cut.', function (t) { - checkFormatting(t, 'failed', 'should start with "Unre...'); + checkFormatting(t, 'failed', 'should start with "Unre'); });