chore: one step circle check
parent
128410902c
commit
0a30018330
@ -1,9 +1,17 @@
|
|||||||
|
import exp from 'constants'
|
||||||
import format from '.'
|
import format from '.'
|
||||||
import { agentNodeData } from './data'
|
import { agentNodeData, oneStepCircle, multiStepsCircle } from './data'
|
||||||
|
|
||||||
describe('agent', () => {
|
describe('agent', () => {
|
||||||
test('list should transform to tree', () => {
|
test('list should transform to tree', () => {
|
||||||
// console.log(format(agentNodeData.in as any))
|
// console.log(format(agentNodeData.in as any))
|
||||||
expect(format(agentNodeData.in as any)).toEqual(agentNodeData.expect)
|
expect(format(agentNodeData.in as any)).toEqual(agentNodeData.expect)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('list should remove circle log item', () => {
|
||||||
|
// format(oneStepCircle.in as any)
|
||||||
|
console.log(JSON.stringify(format(multiStepsCircle.in as any)[0].agentLog))
|
||||||
|
// expect(format(oneStepCircle.in as any)).toEqual(oneStepCircle.expect)
|
||||||
|
// expect(format(multiStepsCircle.in as any)).toEqual(multiStepsCircle.expect)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue