🔄 Update test data structure in useGamemasterFiles to use objects instead of plain text for large file simulation
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user