Skip to content

Commit

Permalink
tests: testing dashboard, should probably move render tests to tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
wllfaria committed Apr 22, 2024
1 parent b3d82c7 commit 61a31f4
Show file tree
Hide file tree
Showing 4 changed files with 559 additions and 45 deletions.
6 changes: 3 additions & 3 deletions tui/src/components/api_explorer/api_explorer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ use crate::components::{
},
Component,
};
use anyhow::Context;
use crossterm::event::{KeyCode, KeyEvent};
use reqtui::{
command::Command,
net::request_manager::{ReqtuiNetRequest, ReqtuiResponse},
schema::types::{Request, RequestKind, Schema},
};

use anyhow::Context;
use crossterm::event::{KeyCode, KeyEvent};
use ratatui::{
layout::{Constraint, Direction, Layout, Rect},
style::Stylize,
Expand Down Expand Up @@ -279,7 +279,7 @@ fn traverse(
needle: &RequestKind,
path: &mut Vec<RequestKind>,
) -> bool {
let node_match = *current == *needle;
let node_match = current.eq(needle);

match (&visit, node_match, &found) {
// We are looking for the next item and we already found the current one (needle), so the
Expand Down
Loading

0 comments on commit 61a31f4

Please sign in to comment.