1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| import format from '.'
| import graphToLogStruct from '../graph-to-log-struct'
| import { noop } from 'lodash-es'
|
| describe('iteration', () => {
| const list = graphToLogStruct('start -> (iteration, iterationNode, plainNode1 -> plainNode2)')
| // const [startNode, iterationNode, ...iterations] = list
| const result = format(list as any, noop)
| test('result should have no nodes in iteration node', () => {
| expect((result as any).find((item: any) => !!item.execution_metadata?.iteration_id)).toBeUndefined()
| })
| // test('iteration should put nodes in details', () => {
| // expect(result as any).toEqual([
| // startNode,
| // {
| // ...iterationNode,
| // details: [
| // [iterations[0], iterations[1]],
| // ],
| // },
| // ])
| // })
| })
|
|