import { getDataTree, subsidiariesFromParentId } from '@src/data'; const fixtureData = require('./fixtures/misawa-homes-chugoku.json'); describe('Connection map data', () => { it('Processes data to a tree structure', () => { const tree = getDataTree(fixtureData, '065Q0Y-E'); expect(tree).toMatchSnapshot(); }); it('Correctly retrieves subsidiaries from dataSet based on entityId', () => { const subsidiaries = subsidiariesFromParentId('065Q0Y-E', fixtureData); expect(subsidiaries).toMatchSnapshot(); }); });