mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-02-23 10:06:16 +00:00
Fix test for LicensedArticle serialization
This commit is contained in:
parent
53512a6167
commit
05f4c186f4
1 changed files with 5 additions and 1 deletions
|
@ -698,7 +698,11 @@ mod tests {
|
||||||
);
|
);
|
||||||
let expected = json!({
|
let expected = json!({
|
||||||
"type": "Article",
|
"type": "Article",
|
||||||
"license": "CC-0"
|
"license": "CC-0",
|
||||||
|
"source": {
|
||||||
|
"content": "content",
|
||||||
|
"mediaType": "text/plain"
|
||||||
|
}
|
||||||
});
|
});
|
||||||
assert_json_eq!(to_value(licensed_article).unwrap(), expected);
|
assert_json_eq!(to_value(licensed_article).unwrap(), expected);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue