import { cleanup } from '@testing-library/react';

import { getSimulatedTableData } from '../utils';
import { mockNetworks } from '../__mocks__/networks';

beforeEach(cleanup);

describe('Check DataGrid utils', () => {
  it(`should run getSimulatedTableData util correctly`, () => {
    const mockNetworksSimulated = {
      ...mockNetworks,
      tableData: getSimulatedTableData(mockNetworks.tableData, 10, 100)
    };

    expect(mockNetworksSimulated.tableData.data.length).toEqual(100);
  });
});
