From 4d17769b2b67ec8458ee46e2dc61d21d87854814 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 11 Nov 2019 20:48:24 +0100 Subject: [PATCH] Update tests to use example.com instead of domain.com because domain.com represents a business, while example.com is actually just an example domain --- src/stripped.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stripped.rs b/src/stripped.rs index 214b19c7..15855be4 100644 --- a/src/stripped.rs +++ b/src/stripped.rs @@ -405,7 +405,7 @@ mod tests { "mimetype": "image/jpeg", "size": 32 }, - "thumbnail_url": "https://domain.com/image-thumbnail.jpg" + "thumbnail_url": "https://example.com/image-thumbnail.jpg" }, "thumbnail_info": { "h": 16, @@ -413,8 +413,8 @@ mod tests { "mimetype": "image/jpeg", "size": 32 }, - "thumbnail_url": "https://domain.com/image-thumbnail.jpg", - "url": "https://domain.com/image.jpg" + "thumbnail_url": "https://example.com/image-thumbnail.jpg", + "url": "https://example.com/image.jpg" } }"#; @@ -470,7 +470,7 @@ mod tests { image_info.thumbnail_info.unwrap().size.unwrap(), UInt::try_from(32).unwrap() ); - assert_eq!(event.content.url, "https://domain.com/image.jpg"); + assert_eq!(event.content.url, "https://example.com/image.jpg"); assert_eq!(event.event_type, EventType::RoomAvatar); assert_eq!(event.state_key, ""); assert_eq!(event.sender.to_string(), "@example:localhost");