🧪 Update test to use large string content instead of object for large file handling

This commit is contained in:
2026-01-29 03:23:48 +00:00
parent a92c49b178
commit 2f636ab08d

View File

@@ -327,10 +327,9 @@ describe('useGamemasterFiles', () => {
});
it('should be true for large files', async () => {
const largeData = {
items: Array(15000).fill({ id: 1 })
};
mockClient.getPokemon.mockResolvedValueOnce(largeData);
// Create a large string that will split into many lines
const largeContent = Array(15000).fill('line').join('\n');
mockClient.getPokemon.mockResolvedValueOnce(largeContent);
composable.selectedFile.value = 'pokemon';
await composable.loadFile();