-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, add some rendering snapshot tests
- Loading branch information
Showing
5 changed files
with
126 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/cli/snapshots/maconomy__cli__rendering__test__display_ansi_stripped_timesheet.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
source: src/cli/rendering.rs | ||
expression: ansi_stripped_time_sheet.to_string() | ||
snapshot_kind: text | ||
--- | ||
╭───────────────────────────────────────────────────────────────────────────────╮ | ||
│ Job name Task name Mon Tue Wed Thu Fri Sat Sun │ | ||
├───────────────────────────────────────────────────────────────────────────────┤ | ||
│ Job number one Task number one 8:00 8:00 │ | ||
├───────────────────────────────────────────────────────────────────────────────┤ | ||
│ job number two task number two 8:00 8:00 1:00 1:00 │ | ||
├───────────────────────────────────────────────────────────────────────────────┤ | ||
│ job number three task number three 7:00 7:00 8:00 │ | ||
├───────────────────────────────────────────────────────────────────────────────┤ | ||
│ Week 47 │ | ||
╰───────────────────────────────────────────────────────────────────────────────╯ |
16 changes: 16 additions & 0 deletions
16
src/cli/snapshots/maconomy__cli__rendering__test__display_timesheet.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
source: src/cli/rendering.rs | ||
expression: time_sheet.to_string() | ||
snapshot_kind: text | ||
--- | ||
[38;2;85;85;85m╭───────────────────────────────────────────────────────────────────────────────╮[39m | ||
[38;2;85;85;85m│[39m[1m [22m[1mJob name[22m[1m [22m[1m [22m[1m [22m[1mTask name[22m[1m [22m[1m [22m[1m [22m[1mMon[22m[1m [22m[1m [22m[1m [22m[1mTue[22m[1m [22m[1m [22m[1m [22m[1mWed[22m[1m [22m[1m [22m[1m [22m[1mThu[22m[1m [22m[1m [22m[1m [22m[1mFri[22m[1m [22m[1m [22m[1m [22m[1mSat[22m[1m [22m[1m [22m[1m [22m[1mSun[22m[1m [22m[1m [22m[38;2;85;85;85m│[39m | ||
[38;2;85;85;85m├───────────────────────────────────────────────────────────────────────────────┤[39m | ||
[38;2;85;85;85m│[39m Job number one Task number one 8:00 8:00 [38;2;85;85;85m│[39m | ||
[38;2;85;85;85m├───────────────────────────────────────────────────────────────────────────────┤[39m | ||
[38;2;85;85;85m│[39m job number two task number two 8:00 8:00 1:00 1:00 [38;2;85;85;85m│[39m | ||
[38;2;85;85;85m├───────────────────────────────────────────────────────────────────────────────┤[39m | ||
[38;2;85;85;85m│[39m job number three task number three 7:00 7:00 8:00 [38;2;85;85;85m│[39m | ||
[38;2;85;85;85m├───────────────────────────────────────────────────────────────────────────────┤[39m | ||
[38;2;85;85;85m│[39m[38;2;85;85;85m [39m[38;2;85;85;85mWeek 47[39m[38;2;85;85;85m [39m[38;2;85;85;85m [39m[38;2;85;85;85m│[39m | ||
[38;2;85;85;85m╰───────────────────────────────────────────────────────────────────────────────╯[39m |