🧪 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 () => {
|
it('should be true for large files', async () => {
|
||||||
const largeData = {
|
// Create a large string that will split into many lines
|
||||||
items: Array(15000).fill({ id: 1 })
|
const largeContent = Array(15000).fill('line').join('\n');
|
||||||
};
|
mockClient.getPokemon.mockResolvedValueOnce(largeContent);
|
||||||
mockClient.getPokemon.mockResolvedValueOnce(largeData);
|
|
||||||
composable.selectedFile.value = 'pokemon';
|
composable.selectedFile.value = 'pokemon';
|
||||||
|
|
||||||
await composable.loadFile();
|
await composable.loadFile();
|
||||||
|
|||||||
Reference in New Issue
Block a user