mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-09 23:12:40 -04:00
fix: dprint
This commit is contained in:
parent
ff15d4902a
commit
c37431f953
1 changed files with 12 additions and 9 deletions
|
@ -110,15 +110,18 @@ mod test {
|
||||||
|
|
||||||
let swaps = response.get("swaps").unwrap();
|
let swaps = response.get("swaps").unwrap();
|
||||||
assert_eq!(swaps.len(), 1);
|
assert_eq!(swaps.len(), 1);
|
||||||
assert_has_keys_hashmap(swaps[0].as_object().unwrap(), &[
|
assert_has_keys_hashmap(
|
||||||
"swapId",
|
swaps[0].as_object().unwrap(),
|
||||||
"startDate",
|
&[
|
||||||
"state",
|
"swapId",
|
||||||
"btcAmount",
|
"startDate",
|
||||||
"xmrAmount",
|
"state",
|
||||||
"exchangeRate",
|
"btcAmount",
|
||||||
"tradingPartnerPeerId"
|
"xmrAmount",
|
||||||
]);
|
"exchangeRate",
|
||||||
|
"tradingPartnerPeerId",
|
||||||
|
],
|
||||||
|
);
|
||||||
|
|
||||||
let response: HashMap<String, HashMap<Uuid, Vec<Value>>> = client
|
let response: HashMap<String, HashMap<Uuid, Vec<Value>>> = client
|
||||||
.request("get_raw_states", ObjectParams::new())
|
.request("get_raw_states", ObjectParams::new())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue