🔄 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', () => {
|
describe('expandDisplayLinesToInclude', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
// Create large file with many lines
|
// Create large file with many items that will create many lines
|
||||||
const largeContent = Array(20000).fill('test line').join('\n');
|
const largeData = {
|
||||||
mockClient.getPokemon.mockResolvedValueOnce(largeContent);
|
items: Array(15000).fill({ id: 1, data: 'test' })
|
||||||
|
};
|
||||||
|
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