🛠️ Update FileSelector test to reflect that loadStatus is handled by the parent component

This commit is contained in:
2026-01-29 05:03:11 +00:00
parent ff7f19a790
commit 5feab84540

View File

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