Skip to content

Commit

Permalink
tests: fixing broken input tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wllfaria committed Apr 20, 2024
1 parent 73b6f87 commit a833ee0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tui/src/components/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ mod tests {
.block(
Block::default()
.title("my input".to_string())
.title_style(Style::default().fg(colors.normal.white.into()))
.borders(Borders::ALL)
.border_type(BorderType::Rounded)
.border_style(Style::default().fg(colors.bright.black.into())),
.border_style(Style::default().fg(colors.primary.hover.into())),
)
.style(Style::default().fg(colors.normal.blue.into()));
.style(Style::default().fg(colors.normal.magenta.into()));

let result = input.build_input("".into());

Expand All @@ -103,11 +104,12 @@ mod tests {
.block(
Block::default()
.title("my input".to_string())
.title_style(Style::default().fg(colors.normal.white.into()))
.borders(Borders::ALL)
.border_type(BorderType::Rounded)
.border_style(Style::default().fg(colors.normal.green.into())),
.border_style(Style::default().fg(colors.bright.magenta.into())),
)
.style(Style::default().fg(colors.normal.blue.into()));
.style(Style::default().fg(colors.normal.magenta.into()));

input.focus();
let result = input.build_input("".into());
Expand All @@ -123,9 +125,10 @@ mod tests {
.block(
Block::default()
.title("my input".to_string())
.title_style(Style::default().fg(colors.normal.white.into()))
.borders(Borders::ALL)
.border_type(BorderType::Rounded)
.border_style(Style::default().fg(colors.bright.black.into())),
.border_style(Style::default().fg(colors.primary.hover.into())),
)
.style(Style::default().fg(colors.normal.white.into()));

Expand All @@ -142,9 +145,10 @@ mod tests {
.block(
Block::default()
.title("my input".to_string())
.title_style(Style::default().fg(colors.normal.white.into()))
.borders(Borders::ALL)
.border_type(BorderType::Rounded)
.border_style(Style::default().fg(colors.normal.green.into())),
.border_style(Style::default().fg(colors.bright.magenta.into())),
)
.style(Style::default().fg(colors.normal.white.into()));

Expand Down

0 comments on commit a833ee0

Please sign in to comment.