From 5feab84540fb7f70cc264a24690a8332623ff10d Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 05:03:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Update=20FileSelector?= =?UTF-8?q?=20test=20to=20reflect=20that=20loadStatus=20is=20handled=20by?= =?UTF-8?q?=20the=20parent=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/unit/components/gamemaster/FileSelector.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/websites/pokedex.online/tests/unit/components/gamemaster/FileSelector.test.js b/code/websites/pokedex.online/tests/unit/components/gamemaster/FileSelector.test.js index a891190..d9cd8e2 100644 --- a/code/websites/pokedex.online/tests/unit/components/gamemaster/FileSelector.test.js +++ b/code/websites/pokedex.online/tests/unit/components/gamemaster/FileSelector.test.js @@ -45,12 +45,13 @@ describe('FileSelector Component', () => { expect(select.find('option').text()).toContain('Choose a file'); }); - it('calls loadStatus on mount', () => { + it('does not call loadStatus on mount (handled by parent)', () => { mount(FileSelector, { props: { client: {} } }); - expect(mockFiles.loadStatus).toHaveBeenCalled(); + // FileSelector does not call loadStatus - this is the parent's responsibility + expect(mockFiles.loadStatus).not.toHaveBeenCalled(); }); it('renders available file options', () => {