Skip to content

Commit

Permalink
Add test for --no-newline
Browse files Browse the repository at this point in the history
  • Loading branch information
msabramo committed Sep 14, 2021
1 parent 71b2123 commit a59ac22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ test('without -n, output has trailing newline', macro,
test('with -n, output has NO trailing newline', macro,
{args: ['-n', 'red', 'bold', 'unicorn'], opts: {stripEof: false}},
chalk.red.bold('unicorn') /* No trailing newline */);
test('with --no-newline, output has NO trailing newline', macro,
{args: ['--no-newline', 'red', 'bold', 'unicorn'], opts: {stripEof: false}},
chalk.red.bold('unicorn') /* No trailing newline */);

0 comments on commit a59ac22

Please sign in to comment.