@pixlcore/xycli 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,14 +7,14 @@ cli.global();
7
7
 
8
8
  test('toast wraps within the terminal width without ellipsis', () => {
9
9
  const originalWidth = cli.width;
10
- const originalWrite = process.stdout.write;
10
+ const originalWrite = process.stderr.write;
11
11
  const originalColor = cli.chalk.enabled;
12
12
  let output = '';
13
13
 
14
14
  try {
15
15
  cli.width = function() { return 40; };
16
16
  cli.chalk.enabled = false;
17
- process.stdout.write = function(chunk) {
17
+ process.stderr.write = function(chunk) {
18
18
  output += chunk;
19
19
  return true;
20
20
  };
@@ -27,7 +27,7 @@ test('toast wraps within the terminal width without ellipsis', () => {
27
27
  finally {
28
28
  cli.width = originalWidth;
29
29
  cli.chalk.enabled = originalColor;
30
- process.stdout.write = originalWrite;
30
+ process.stderr.write = originalWrite;
31
31
  }
32
32
 
33
33
  const box_lines = output.split('\n').filter( line => line.match(/[┌│└]/) );