Skip to content

Commit

Permalink
adjust test to use commands
Browse files Browse the repository at this point in the history
  • Loading branch information
siler committed Mar 4, 2021
1 parent d659728 commit 3b8159f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ mod test {
);

// Parent `e1` to `e2`.
(*world.get_mut::<Parent>(children[0]).unwrap()).0 = children[1];
let mut commands = Commands::default();
commands.push_children(children[1], &[children[0]]);

commands.apply(&mut world, &mut resources);
schedule.run(&mut world, &mut resources);

assert_eq!(
Expand Down

0 comments on commit 3b8159f

Please sign in to comment.