Cleanup node display logic

This commit is contained in:
Juno Takano 2026-01-19 01:43:40 -03:00
commit 2549e904b3
2 changed files with 85 additions and 23 deletions

View file

@ -176,7 +176,7 @@ mod tests {
fn render_with_context() {
let payload = "dBgIw8DnNHxJojiXzu445qUC4UpxwZCy";
let mut context = tera::Context::default();
let node = crate::graph::Node::new(Some(payload.to_string()));
let node = crate::graph::Node::not_found(Some(payload.to_string()));
let graph = Graph::load();
context.insert("node", &node);
context.insert("graph", &graph);