diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-08-07 13:46:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-07 13:46:08 +0200 |
| commit | 8080050aacd50eaafcaec92f52a7e5d3e640b865 (patch) | |
| tree | 42851785b85d25645d88ba95041e99649d70fee9 /zellij-server/src/plugins/unit/plugin_tests.rs | |
| parent | docs(changelog): background command panes (diff) | |
| download | sl0ppij-8080050aacd50eaafcaec92f52a7e5d3e640b865.tar.gz sl0ppij-8080050aacd50eaafcaec92f52a7e5d3e640b865.tar.xz sl0ppij-8080050aacd50eaafcaec92f52a7e5d3e640b865.zip | |
fix(plugins): various cwd fixes (#3545)
* fix(plugins): various cwd fixes
* fix tests
Diffstat (limited to 'zellij-server/src/plugins/unit/plugin_tests.rs')
| -rw-r--r-- | zellij-server/src/plugins/unit/plugin_tests.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zellij-server/src/plugins/unit/plugin_tests.rs b/zellij-server/src/plugins/unit/plugin_tests.rs index 031f0100..f3a6fed8 100644 --- a/zellij-server/src/plugins/unit/plugin_tests.rs +++ b/zellij-server/src/plugins/unit/plugin_tests.rs @@ -6873,5 +6873,9 @@ pub fn open_command_pane_background_plugin_command() { } }) .clone(); - assert_snapshot!(format!("{:#?}", new_tab_event)); + // we do the replace below to avoid the randomness of the temporary folder in the snapshot + // while still testing it + assert_snapshot!( + format!("{:#?}", new_tab_event).replace(&format!("{:?}", temp_folder.path()), "\"CWD\"") + ); } |
