Fix test for LicensedArticle serialization

This commit is contained in:
Kitaiti Makoto 2022-03-07 03:24:53 +09:00
parent 53512a6167
commit 05f4c186f4
1 changed files with 5 additions and 1 deletions

View File

@ -698,7 +698,11 @@ mod tests {
);
let expected = json!({
"type": "Article",
"license": "CC-0"
"license": "CC-0",
"source": {
"content": "content",
"mediaType": "text/plain"
}
});
assert_json_eq!(to_value(licensed_article).unwrap(), expected);
}