Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Aug 23, 2020
1 parent 38a7371 commit b5c4784
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/components/textinput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,12 @@ mod tests {

#[test]
fn test_smoke() {
let mut comp =
TextInputComponent::new(SharedTheme::default(), "", "");
let mut comp = TextInputComponent::new(
SharedTheme::default(),
SharedKeyConfig::default(),
"",
"",
);

comp.set_text(String::from("a\nb"));

Expand All @@ -304,8 +308,12 @@ mod tests {

#[test]
fn test_visualize_newline() {
let mut comp =
TextInputComponent::new(SharedTheme::default(), "", "");
let mut comp = TextInputComponent::new(
SharedTheme::default(),
SharedKeyConfig::default(),
"",
"",
);

comp.set_text(String::from("a\nb"));

Expand Down

0 comments on commit b5c4784

Please sign in to comment.