From 90a49a29e41748b8e405604aed096d1daca753c7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 22 Sep 2022 22:22:43 -0700 Subject: [PATCH] [Fix] make tests pass --- index.js | 2 +- test/long-message/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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'); });