🔧 Fix error handling and update test logic for loading moves in useGamemasterFiles test

This commit is contained in:
2026-01-29 03:23:38 +00:00
parent 6f72715726
commit a92c49b178

View File

@@ -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();