aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-11 18:47:52 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-11 18:47:52 +0200
commit3004a859d652049bc721960103efe574b567f2e2 (patch)
treeefacaadf2eedb5d4be8d5dd7f581aa1cacd693c8 /src/tests
parentef7b6b03355b82621d16f4f02a5a1a4558ae64cc (diff)
downloadnitrocli-pull-request/status.tar.gz
nitrocli-pull-request/status.tar.bz2
fixup! List all matching devices in status commmandpull-request/status
cargo fmt
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/status.rs5
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);