Skip to content

Commit

Permalink
Make progress evenly spaced
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Sep 23, 2023
1 parent df78498 commit 21c10bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Themes/Default/ProgressRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ProgressRenderer extends Renderer
/**
* The character to use for the progress bar.
*/
protected string $barCharacter = '';
protected string $barCharacter = '';

/**
* Render the progress bar.
Expand Down
8 changes: 4 additions & 4 deletions tests/Feature/ProgressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@
OUTPUT);

Prompt::assertStrippedOutputContains(<<<'OUTPUT'
▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆
███████████████
└───────────────────────────────────────────────────────── 1/4 ┘
OUTPUT);

Prompt::assertStrippedOutputContains(<<<'OUTPUT'
▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆
██████████████████████████████
└───────────────────────────────────────────────────────── 2/4 ┘
OUTPUT);

Prompt::assertStrippedOutputContains(<<<'OUTPUT'
▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆
█████████████████████████████████████████████
└───────────────────────────────────────────────────────── 3/4 ┘
OUTPUT);

Prompt::assertStrippedOutputContains(<<<'OUTPUT'
┌ Adding States ───────────────────────────────────────────────┐
▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆
████████████████████████████████████████████████████████████
└───────────────────────────────────────────────────────── 4/4 ┘
OUTPUT);
})->with([
Expand Down

0 comments on commit 21c10bf

Please sign in to comment.