diff --git a/code/websites/pokedex.online/tests/unit/composables/useGamemasterFiles.test.js b/code/websites/pokedex.online/tests/unit/composables/useGamemasterFiles.test.js index ed5ce45..799d220 100644 --- a/code/websites/pokedex.online/tests/unit/composables/useGamemasterFiles.test.js +++ b/code/websites/pokedex.online/tests/unit/composables/useGamemasterFiles.test.js @@ -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();