pinakes-server: fix subtitle list response and registration
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I22c7237877862acbf931ce4c662bd2816a6a6964
This commit is contained in:
parent
76a48250e9
commit
b1ddb32ff0
5 changed files with 9 additions and 7 deletions
|
|
@ -59,11 +59,11 @@ async fn notes_graph_empty() {
|
|||
let nodes_empty = obj
|
||||
.get("nodes")
|
||||
.and_then(|v| v.as_array())
|
||||
.map_or(true, |a| a.is_empty());
|
||||
.is_none_or(std::vec::Vec::is_empty);
|
||||
let edges_empty = obj
|
||||
.get("edges")
|
||||
.and_then(|v| v.as_array())
|
||||
.map_or(true, |a| a.is_empty());
|
||||
.is_none_or(std::vec::Vec::is_empty);
|
||||
assert!(
|
||||
nodes_empty && edges_empty,
|
||||
"graph should be empty, got {obj:?}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue