@hms-dbmi-bgm/react-workflow-viz
Version:
React component for visualizing CWL-like workflows and provenance graphs.
20 lines (18 loc) • 454 B
JavaScript
import { nodesPreSortFxn } from '../src/components/parsing-functions';
describe('parsing-function.js', () => {
describe('nodesPreSortFxn', () => {
it('sets column to 0', () => {
const nodes = [
{
nodeType: 'input',
meta: {
global: true
},
column: 1
}
];
const nodesAfter = nodesPreSortFxn(nodes);
expect(nodesAfter[0].column).toEqual(0)
});
});
});