Skip to content

Commit 49e08bb

Browse files
committed
chore: added an additional testcase
1 parent 9f62693 commit 49e08bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ describe('wrap', function () {
3434
assert.equal(wrap(str, {trim: true}), 'A project without documentation is like a project\nthat doesn\'t exist. Verb solves this by making it\ndead simple to generate project documentation,\nusing simple markdown templates, with zero\nconfiguration required.');
3535
});
3636

37+
it('should trim trailing whitespace (even for empty lines):', function () {
38+
assert.equal(wrap("a \n\nb \n \nc\t", {trim: true}), 'a\nb\nc');
39+
});
40+
3741
it('should handle strings with just newlines', function () {
3842
assert.equal(wrap('\r\n', {indent: '\r\n', width: 18}), '\r\n');
3943
});

0 commit comments

Comments
 (0)