diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-20 08:49:18 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-22 15:19:46 +0300 |
| commit | 2d3c36edae2cbce10ec57995c5a4418fb2424bd2 (patch) | |
| tree | 97901f2bc698c287cad658ffc8e4a31010b2dccf /niri-config | |
| parent | 8dcc41a54d2606bab2d0e950f4b67668b48d9750 (diff) | |
| download | niri-2d3c36edae2cbce10ec57995c5a4418fb2424bd2.tar.gz niri-2d3c36edae2cbce10ec57995c5a4418fb2424bd2.tar.bz2 niri-2d3c36edae2cbce10ec57995c5a4418fb2424bd2.zip | |
Switch from k9 to insta for snapshot testing
We'll need some advanced features from insta.
Diffstat (limited to 'niri-config')
| -rw-r--r-- | niri-config/Cargo.toml | 2 | ||||
| -rw-r--r-- | niri-config/src/lib.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/niri-config/Cargo.toml b/niri-config/Cargo.toml index 6ac81717..633690da 100644 --- a/niri-config/Cargo.toml +++ b/niri-config/Cargo.toml @@ -19,6 +19,6 @@ tracing.workspace = true tracy-client.workspace = true [dev-dependencies] -k9.workspace = true +insta.workspace = true miette = { version = "5.10.0", features = ["fancy"] } pretty_assertions = "1.4.1" diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index a7ac89d2..8ef4d869 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -2933,7 +2933,7 @@ pub fn set_miette_hook() -> Result<(), miette::InstallError> { #[cfg(test)] mod tests { - use k9::snapshot; + use insta::assert_debug_snapshot; use pretty_assertions::assert_eq; use super::*; @@ -3833,9 +3833,9 @@ mod tests { ) }) .collect::<Vec<_>>(); - snapshot!( + assert_debug_snapshot!( names, - r#" + @r#" [ "Unknown A A | DP-3", "A Unknown A | DP-3", |
