v0.14.21
This commit is contained in:
@@ -67,7 +67,9 @@ mod tests {
|
||||
"cols": ["Pow", "Quiet"],
|
||||
"dat": [1, 2]
|
||||
});
|
||||
client.apply_status(&mut device, &response).expect("Quiet=2 status");
|
||||
client
|
||||
.apply_status(&mut device, &response)
|
||||
.expect("Quiet=2 status");
|
||||
|
||||
assert!(device.power);
|
||||
assert!(device.quiet);
|
||||
@@ -87,7 +89,10 @@ mod tests {
|
||||
)
|
||||
.expect("quiet command payload");
|
||||
|
||||
assert_eq!(payload.get("opt").cloned(), Some(serde_json::json!(["Quiet"])));
|
||||
assert_eq!(
|
||||
payload.get("opt").cloned(),
|
||||
Some(serde_json::json!(["Quiet"]))
|
||||
);
|
||||
assert_eq!(payload.get("p").cloned(), Some(serde_json::json!([2])));
|
||||
}
|
||||
|
||||
@@ -105,7 +110,9 @@ mod tests {
|
||||
"cols": ["Pow", "Air"],
|
||||
"dat": [1, 3]
|
||||
});
|
||||
client.apply_status(&mut device, &response).expect("Air=3 status");
|
||||
client
|
||||
.apply_status(&mut device, &response)
|
||||
.expect("Air=3 status");
|
||||
|
||||
assert!(device.power);
|
||||
assert!(device.air);
|
||||
|
||||
Reference in New Issue
Block a user