🔧 Fix error handling and update test logic for loading moves in useGamemasterFiles test
This commit is contained in:
@@ -192,8 +192,9 @@ describe('useGamemasterFiles', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should set error on load failure', async () => {
|
it('should set error on load failure', async () => {
|
||||||
mockClient.getPokemon.mockRejectedValueOnce(new Error('Load failed'));
|
mockClient.getMoves.mockRejectedValueOnce(new Error('Load failed'));
|
||||||
composable.selectedFile.value = 'pokemon';
|
await composable.loadStatus();
|
||||||
|
composable.selectedFile.value = 'moves';
|
||||||
|
|
||||||
await composable.loadFile();
|
await composable.loadFile();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user