mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-23 00:58:33 +02:00
test(game): establish unseen exit before discovery checks
This commit is contained in:
@@ -56,6 +56,8 @@ describe('server-side fog of war', () => {
|
||||
process.env.DUNGEON_LEVELS = '1';
|
||||
const game = new Game('sock', user(), {});
|
||||
const exit = game.dungeon.exit;
|
||||
// A generated spawn can already see the exit. Start this discovery test out of view.
|
||||
setVisible(game, exit, false);
|
||||
|
||||
expect(game.getState().exit).toBeNull();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user