From 2970f66218da2db0bb16915ef6c6166d8d0cac38 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 11 Mar 2014 01:04:42 -0700 Subject: [PATCH] Add `chars` test for pad methods. --- test/test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test.js b/test/test.js index b055b9bce..f631b7735 100644 --- a/test/test.js +++ b/test/test.js @@ -6060,6 +6060,10 @@ strictEqual(func(undefined, 3), ' '); strictEqual(func('', 1), ' '); }); + + test('`_.' + methodName + '` should work with an empty string for `chars`', 1, function() { + equal(func('abc', 6, ''), 'abc'); + }); }); /*--------------------------------------------------------------------------*/