From 9254bf2f808398c673312626a8fcb311f60f419b Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 03:24:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Update=20test=20data=20structure?= =?UTF-8?q?=20in=20`useGamemasterFiles`=20to=20use=20objects=20instead=20o?= =?UTF-8?q?f=20plain=20text=20for=20large=20file=20simulation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/unit/composables/useGamemasterFiles.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 354a59c..d040f3b 100644 --- a/code/websites/pokedex.online/tests/unit/composables/useGamemasterFiles.test.js +++ b/code/websites/pokedex.online/tests/unit/composables/useGamemasterFiles.test.js @@ -376,9 +376,11 @@ describe('useGamemasterFiles', () => { describe('expandDisplayLinesToInclude', () => { beforeEach(async () => { - // Create large file with many lines - const largeContent = Array(20000).fill('test line').join('\n'); - mockClient.getPokemon.mockResolvedValueOnce(largeContent); + // Create large file with many items that will create many lines + const largeData = { + items: Array(15000).fill({ id: 1, data: 'test' }) + }; + mockClient.getPokemon.mockResolvedValueOnce(largeData); composable.selectedFile.value = 'pokemon'; await composable.loadFile(); });