🧪 Update test to use large string content instead of object for large file handling
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user