diff options
Diffstat (limited to 'web/test/playerStore.test.ts')
| -rw-r--r-- | web/test/playerStore.test.ts | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/web/test/playerStore.test.ts b/web/test/playerStore.test.ts index c3aefe8..ffd4a47 100644 --- a/web/test/playerStore.test.ts +++ b/web/test/playerStore.test.ts @@ -3,33 +3,10 @@ import { get } from 'svelte/store'; import { GameSession } from '$lib/state/session'; import type { GameState } from '$lib/protocol/types'; import { SocketSequence } from './fake-socket'; +import { emptyGameState } from './fixtures'; function makeState(overrides: Partial<GameState> = {}): GameState { - return { - level: 1, - solo: false, - autoScenarioLevel: false, - difficulty: 1, - roundState: 0, - round: 1, - totalRounds: 1, - scenario: 'custom', - toastMessage: '', - scenarioSpecialRules: [], - scenarioSectionsAdded: [], - currentCampaign: 'Jaws of the Lion', - currentList: [], - currentAbilityDecks: [], - sanctuaryDeck: {}, - modifierDeck: {}, - modifierDeckAllies: {}, - lootDeck: {}, - unlockedClasses: [], - showAllyDeck: false, - allyDeckInOGGloom: true, - elementState: {}, - ...overrides - }; + return emptyGameState(overrides); } describe('GameSession.player (reactive player/spectator flag)', () => { |
