Cleanup node display logic
This commit is contained in:
parent
9f9042a19d
commit
2549e904b3
2 changed files with 85 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue