🛠️ Update FileSelector test to reflect that loadStatus is handled by the parent component
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user