Version: 0.0.01.13.0-rc.01.13.0-rc.11.13.0-rc.21.13.0-rc.31.13.0-rc.41.13.0-rc.51.14.0-rc.11.14.01.14.1-rc.11.14.1-rc.21.15.01.15.11.15.21.15.32.0.0-pre.12.0.0-pre.22.0.0-pre.32.0.0-pre.42.0.0-pre.52.0.0-pre.62.0.02.0.12.0.22.0.32.0.42.0.52.1.02.1.12.1.22.1.32.1.42.1.5-pre.12.1.52.1.6-pre.12.1.62.1.72.1.8-pre.12.1.8-pre.22.1.8-pre.32.1.82.1.92.2.0-pre.12.2.0-pre.22.2.0-pre.32.2.0-pre.42.2.02.2.12.3.02.3.1-pre.12.3.1-pre.22.4.03.0.0-pre.03.0.0-pre.13.0.0-pre.23.0.0-pre.33.0.0-pre.43.0.0-pre.53.0.0-pre.63.0.0-pre.73.0.0-pre.83.0.0-pre.93.0.03.0.13.1.03.2.0-pre.13.2.0-pre.23.2.0-pre.33.2.03.2.13.2.23.3.03.3.13.4.03.4.13.5.03.5.13.5.23.6.03.6.13.6.24.0.0-pre.14.0.0-pre.24.0.0-pre.34.0.0-pre.44.0.0-pre.54.0.0-pre.64.0.04.0.14.0.24.1.04.1.14.1.24.1.3
import deref from './deref';
describe('deref', () => {
test('derefs a ref layer which follows its parent', () => {
expect(deref([
{
'id': 'parent',
'type': 'line'
},
'id': 'child',
'ref': 'parent'
}
])).toEqual([
]);
});
test('derefs a ref layer which precedes its parent', () => {