From 2f636ab08d36497474ad00dd37fa4cb49c06786c Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 03:23:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Update=20test=20to=20use=20large?= =?UTF-8?q?=20string=20content=20instead=20of=20object=20for=20large=20fil?= =?UTF-8?q?e=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/unit/composables/useGamemasterFiles.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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();