Skip to content

Commit

Permalink
Fix broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viridia committed Dec 13, 2024
1 parent b1b475f commit 0081c7a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/bevy_input_focus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ mod tests {
keyboard::{Key, KeyCode},
ButtonState, InputPlugin,
};
use bevy_window::WindowResolution;
use smol_str::SmolStr;

#[derive(Component)]
Expand Down Expand Up @@ -369,6 +370,12 @@ mod tests {
app.add_plugins((InputPlugin, InputDispatchPlugin))
.add_observer(gather_keyboard_events);

let window = Window {
resolution: WindowResolution::new(800., 600.),
..Default::default()
};
app.world_mut().spawn((window, PrimaryWindow));

let entity_a = app
.world_mut()
.spawn((GatherKeyboardEvents::default(), SetFocusOnAdd))
Expand Down

0 comments on commit 0081c7a

Please sign in to comment.