import * as React from 'react';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Story from './Story';
import { sliceBy, mockResizeObserver } from 'valor-app-utils';
import { getCellsInfo } from '../../commands/stories/helper';

mockResizeObserver();

configure({ adapter: new Adapter() });

describe('cross-sheet', () => {
  it('case0', () => {
    const wrapper = mount(<Story env="test" />);

    let cellInfo = getCellsInfo(wrapper, true);
    expect(cellInfo.resultIds).toEqual([11, 21]);
    expect(cellInfo.resultValues).toEqual([110, 120]);
  });
});
