File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,23 +43,13 @@ fn test_bevy_plugin() {
4343
4444 let bytebox = crate :: byte_box:: ByteBox :: new ( "some_location" ) . expect ( "failed to create bytebox" ) ;
4545
46- fn fetch_box ( bytebox : Res < crate :: byte_box:: ByteBox > ) {
47- assert_eq ! (
48- bytebox
49- . path( )
50- . canonicalize( )
51- . expect( "failed to canonicalize bytebox path" ) ,
52- std:: env:: current_dir( )
53- . expect( "failed to get current dir" )
54- . join( "some_location" )
55- . canonicalize( )
56- . expect( "failed to canonicalize path" )
57- ) ;
46+ fn do_stuff ( bytebox : Res < crate :: byte_box:: ByteBox > ) {
47+ bytebox. delete ( ) ;
5848 }
5949
6050 App :: new ( )
6151 . add_plugins ( ( crate :: bevy:: ByteboxPlugin :: new ( ) . with ( bytebox) , ) )
62- . add_systems ( Startup , fetch_box )
52+ . add_systems ( Startup , do_stuff )
6353 . set_runner ( |mut app| {
6454 app. update ( ) ;
6555 app. cleanup ( ) ;
You can’t perform that action at this time.
0 commit comments