chore: pass PR1 verification gate (format, lint, coverage)
This commit is contained in:
@@ -16,9 +16,11 @@ describe('M1 stub content pack', () => {
|
||||
it('can simulate a costed action without throwing', () => {
|
||||
const state = createGameState(content);
|
||||
const trade = content.actions.find((a) => a.costs.length > 0);
|
||||
expect(trade).toBeDefined();
|
||||
enqueueAction(state, content, trade!.id);
|
||||
tickGame(state, content, trade!.durationMs);
|
||||
if (!trade) {
|
||||
throw new Error('expected at least one costed action');
|
||||
}
|
||||
enqueueAction(state, content, trade.id);
|
||||
tickGame(state, content, trade.durationMs);
|
||||
expect(state.activeActionId).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user