diff options
author | D. Scott Boggs <scott@tams.tech> | 2023-02-12 12:38:28 -0500 |
---|---|---|
committer | D. Scott Boggs <scott@tams.tech> | 2024-04-08 08:56:16 -0400 |
commit | 84f2f45efafc9969507a7a15cdd662f7a566b695 (patch) | |
tree | 008690423856b32a0cefe9eebda525f9a9cb154b | |
parent | e7f44825cba238fbab4de1d4059bafb0c199fb36 (diff) |
Add IP example test
-rw-r--r-- | entities/src/admin/account.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/entities/src/admin/account.rs b/entities/src/admin/account.rs index a3cfd17..c486ca7 100644 --- a/entities/src/admin/account.rs +++ b/entities/src/admin/account.rs @@ -124,5 +124,7 @@ mod tests { }"##; let account: Account = serde_json::from_str(data).expect("deserialize"); assert_eq!(account.id, AccountId::new("108965278956942133")); + let ip = &account.ips[0]; + assert_eq!(ip.ip.to_string(), "192.168.42.1"); } } |