From 38ebc9ea41cc8a6ac04b3d2e17a347d633e38533 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 1 May 2022 12:59:48 +0900 Subject: [PATCH] Modify test data for Post --- plume-models/src/posts.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/plume-models/src/posts.rs b/plume-models/src/posts.rs index 375f3a7f..37dfaea7 100644 --- a/plume-models/src/posts.rs +++ b/plume-models/src/posts.rs @@ -1715,10 +1715,10 @@ mod tests { "name": "Testing", "published": format_datetime(&post.creation_date), "source": { - "content": "", + "content": "Hello", "mediaType": "text/markdown" }, - "summary": "", + "summary": "Bye", "tag": [ { "href": "https://plu.me/@/user/", @@ -1753,10 +1753,10 @@ mod tests { "name": "Testing", "published": format_datetime(&post.creation_date), "source": { - "content": "", + "content": "Hello", "mediaType": "text/markdown" }, - "summary": "", + "summary": "Bye", "tag": [ { "href": "https://plu.me/@/user/", @@ -1795,10 +1795,10 @@ mod tests { "name": "Testing", "published": format_datetime(&post.creation_date), "source": { - "content": "", + "content": "Hello", "mediaType": "text/markdown" }, - "summary": "", + "summary": "Bye", "tag": [ { "href": "https://plu.me/@/user/", @@ -1840,10 +1840,10 @@ mod tests { "name": "Testing", "published": format_datetime(&post.creation_date), "source": { - "content": "", + "content": "Hello", "mediaType": "text/markdown" }, - "summary": "", + "summary": "Bye", "tag": [ { "href": "https://plu.me/@/user/", @@ -1885,10 +1885,10 @@ mod tests { "name": "Testing", "published": format_datetime(&post.creation_date), "source": { - "content": "", + "content": "Hello", "mediaType": "text/markdown" }, - "summary": "", + "summary": "Bye", "tag": [ { "href": "https://plu.me/@/user/", @@ -1924,7 +1924,7 @@ mod tests { if key == "id" { continue; } - assert_eq!(value, expected.get(key).unwrap()); + assert_json_eq!(value, expected.get(key).unwrap()); } Ok(()) @@ -1951,10 +1951,10 @@ mod tests { "name": "Testing", "published": format_datetime(&post.creation_date), "source": { - "content": "", + "content": "Hello", "mediaType": "text/markdown" }, - "summary": "", + "summary": "Bye", "tag": [ { "href": "https://plu.me/@/user/", @@ -1990,7 +1990,7 @@ mod tests { if key == "id" { continue; } - assert_eq!(value, expected.get(key).unwrap()); + assert_json_eq!(value, expected.get(key).unwrap()); } Ok(())