Skip to content

Commit a7978a9

Browse files
committed
fix test case
1 parent 739be6c commit a7978a9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Diff for: src/components/textinput.rs

+12-4
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,12 @@ mod tests {
278278

279279
#[test]
280280
fn test_smoke() {
281-
let mut comp =
282-
TextInputComponent::new(SharedTheme::default(), "", "");
281+
let mut comp = TextInputComponent::new(
282+
SharedTheme::default(),
283+
SharedKeyConfig::default(),
284+
"",
285+
"",
286+
);
283287

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

@@ -302,8 +306,12 @@ mod tests {
302306

303307
#[test]
304308
fn test_visualize_newline() {
305-
let mut comp =
306-
TextInputComponent::new(SharedTheme::default(), "", "");
309+
let mut comp = TextInputComponent::new(
310+
SharedTheme::default(),
311+
SharedKeyConfig::default(),
312+
"",
313+
"",
314+
);
307315

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

0 commit comments

Comments
 (0)