fix: Initialize Notifications resource in wonderevent tests
This commit is contained in:
@@ -3,6 +3,7 @@ use pomomon_garden::features::config::components::{BerrySeedConfig, GameConfig};
|
|||||||
use pomomon_garden::features::core::states::AppState;
|
use pomomon_garden::features::core::states::AppState;
|
||||||
use pomomon_garden::features::grid::components::{Grid, Tile, TileState};
|
use pomomon_garden::features::grid::components::{Grid, Tile, TileState};
|
||||||
use pomomon_garden::features::inventory::components::ItemType;
|
use pomomon_garden::features::inventory::components::ItemType;
|
||||||
|
use pomomon_garden::features::notification::components::Notifications;
|
||||||
use pomomon_garden::features::phase::components::{CurrentPhase, Phase, TimerSettings};
|
use pomomon_garden::features::phase::components::{CurrentPhase, Phase, TimerSettings};
|
||||||
use pomomon_garden::features::wonderevent::components::{Position, WonderEventMessage};
|
use pomomon_garden::features::wonderevent::components::{Position, WonderEventMessage};
|
||||||
use pomomon_garden::features::wonderevent::{
|
use pomomon_garden::features::wonderevent::{
|
||||||
@@ -16,6 +17,7 @@ fn test_wonder_event_triggers() {
|
|||||||
app.add_plugins(bevy::state::app::StatesPlugin);
|
app.add_plugins(bevy::state::app::StatesPlugin);
|
||||||
app.add_plugins(WonderEventPlugin);
|
app.add_plugins(WonderEventPlugin);
|
||||||
|
|
||||||
|
app.insert_resource(Notifications::default());
|
||||||
app.insert_resource(GameConfig::default());
|
app.insert_resource(GameConfig::default());
|
||||||
app.insert_resource(TimerSettings {
|
app.insert_resource(TimerSettings {
|
||||||
focus_duration: 60, // 60 seconds
|
focus_duration: 60, // 60 seconds
|
||||||
@@ -94,6 +96,7 @@ fn test_wonder_response_handling() {
|
|||||||
app.add_plugins(MinimalPlugins);
|
app.add_plugins(MinimalPlugins);
|
||||||
app.add_plugins(bevy::state::app::StatesPlugin);
|
app.add_plugins(bevy::state::app::StatesPlugin);
|
||||||
app.add_plugins(WonderEventPlugin);
|
app.add_plugins(WonderEventPlugin);
|
||||||
|
app.insert_resource(Notifications::default());
|
||||||
app.insert_resource(GameConfig {
|
app.insert_resource(GameConfig {
|
||||||
berry_seeds: vec![BerrySeedConfig {
|
berry_seeds: vec![BerrySeedConfig {
|
||||||
name: "TestSeed".to_string(),
|
name: "TestSeed".to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user