diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-11 18:47:52 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-09-11 18:47:52 +0200 |
commit | 3004a859d652049bc721960103efe574b567f2e2 (patch) | |
tree | efacaadf2eedb5d4be8d5dd7f581aa1cacd693c8 | |
parent | ef7b6b03355b82621d16f4f02a5a1a4558ae64cc (diff) | |
download | nitrocli-3004a859d652049bc721960103efe574b567f2e2.tar.gz nitrocli-3004a859d652049bc721960103efe574b567f2e2.tar.bz2 |
fixup! List all matching devices in status commmandstatus
cargo fmt
-rw-r--r-- | src/tests/status.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/status.rs b/src/tests/status.rs index 1f5bbf7..58d06ec 100644 --- a/src/tests/status.rs +++ b/src/tests/status.rs @@ -72,7 +72,10 @@ fn output_multiple(_model: nitrokey::Model) -> anyhow::Result<()> { for (idx, device) in devices.iter().enumerate() { assert!(out.contains(&format!("Device #{}:\n", idx)), out); if let Some(model) = device.model { - assert!(out.contains(&format!("model: {}\n", model)), out); + assert!( + out.contains(&format!("model: {}\n", model)), + out + ); } if let Some(sn) = device.serial_number { assert!(out.contains(&format!("serial number: {}\n", sn)), out); |