1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-29 22:07:13 +02:00
Jesse Duffield dad2c5fa52 Add tests for window arrangement code
The output of the GetWindowDimensions function is hard to understand just by looking at it,
so I've added a helper function in the tests to render the window layout as text, so that
in order to create a new test you just come up with some args and paste the output as the
expected output.

This has the same downsides that any snapshot-based testing has: it's more brittle than
targeted assertions. But it is much easier to make sense of these snapshots than it is
to make sense of more fine-grained assertions, and I like the fact that these tests can
serve as documentation.
2023-12-09 11:53:52 +01:00
..
2023-09-20 13:30:49 +02:00
2023-10-16 09:03:07 +02:00
2023-06-01 20:12:20 +10:00
2023-04-30 13:19:53 +10:00
2022-12-30 20:01:14 +09:00
2023-07-31 22:33:04 +10:00
2023-10-08 18:45:36 +02:00
2023-09-18 10:20:23 +02:00
2023-07-31 22:33:04 +10:00
2021-09-16 21:38:43 +08:00