import '@testing-library/jest-dom/extend-expect';

describe('Processor Test', () => {
  test('test', () => {
    expect(3).toBe(3);
  });
});

// import data from '../../tests/files/sorted';
// import processor from './processor';

// const processed = processor(data.result);
// const firstMarketKey = 'ie_en';

// test('that relations are set', () => {
//   const pagesMarketKeys = Object.keys(processed.pages);
//   expect(pagesMarketKeys.length).toBe(1);
//   expect(pagesMarketKeys[0]).toBe('ie_en');

//   // test operator relation
//   const firstOperator = processed.pages[pagesMarketKeys[0]].operator[0];
//   expect(firstOperator.relation_id).toBe(firstOperator.relation.id);
// });

// test('top list modules are filled', () => {
//   // get unprocessed data
//   const homePage = data.result.pages[firstMarketKey].page.find((item) => item.path === '/');
//   const topListModule = homePage.sections.main.modules.find((item) => item.name === 'top_list');
//   const rawItems = topListModule.items.map((item) => item.operator_id);

//   // get processed data
//   const homePageProcessed = processed.pages[firstMarketKey].page.find((item) => item.path === '/');
//   const topListModuleProcessed = homePageProcessed.sections.main.modules.find(
//     (item) => item.name === 'top_list'
//   );
//   const processedItemIds = topListModuleProcessed.items.map((item) => item.id);
//   const processedItems = topListModuleProcessed.items;
//   expect(rawItems).toStrictEqual(processedItemIds);
//   expect(processedItems[0].name).not.toBeUndefined();
// });
