Skip to content

Commit b5c4784

Browse files
committed
fix test case
1 parent 38a7371 commit b5c4784

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/components/textinput.rs

+12-4
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,12 @@ mod tests {
280280

281281
#[test]
282282
fn test_smoke() {
283-
let mut comp =
284-
TextInputComponent::new(SharedTheme::default(), "", "");
283+
let mut comp = TextInputComponent::new(
284+
SharedTheme::default(),
285+
SharedKeyConfig::default(),
286+
"",
287+
"",
288+
);
285289

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

@@ -304,8 +308,12 @@ mod tests {
304308

305309
#[test]
306310
fn test_visualize_newline() {
307-
let mut comp =
308-
TextInputComponent::new(SharedTheme::default(), "", "");
311+
let mut comp = TextInputComponent::new(
312+
SharedTheme::default(),
313+
SharedKeyConfig::default(),
314+
"",
315+
"",
316+
);
309317

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

0 commit comments

Comments
 (0)