Skip to content

Commit dd71e83

Browse files
committed
with a comment on the resource update
1 parent b3d646e commit dd71e83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/how_to_test_systems.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ fn spawn_enemy_using_input_resource() {
8686
// Check resulting changes, one entity has been spawned with `Enemy` component
8787
assert_eq!(world.query::<&Enemy>().iter(&world).len(), 1);
8888

89+
// Clear the `just_pressed` status for all `KeyCode`s
8990
world.get_resource_mut::<Input<KeyCode>>().unwrap().update();
9091

9192
// Run systems

0 commit comments

Comments
 (0)