summaryrefslogtreecommitdiff
path: root/web/test/state.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/test/state.test.ts')
-rw-r--r--web/test/state.test.ts27
1 files changed, 2 insertions, 25 deletions
diff --git a/web/test/state.test.ts b/web/test/state.test.ts
index 3dada4f..c422810 100644
--- a/web/test/state.test.ts
+++ b/web/test/state.test.ts
@@ -10,33 +10,10 @@ import { get } from 'svelte/store';
import { GameSession, ownedIds } 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);
}
function welcome(