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', () => {