chore: add more tests
This commit is contained in:
parent
057da6c31b
commit
880496db0b
@ -2,8 +2,9 @@ import format from '.'
|
||||
import { simpleIterationData } from './data'
|
||||
|
||||
describe('format api data to tracing panel data', () => {
|
||||
// test('result should have no nodes in iteration node', () => {
|
||||
// }
|
||||
test('result should have no nodes in iteration node', () => {
|
||||
expect(format(simpleIterationData.in as any).find(item => !!(item as any).execution_metadata?.iteration_id)).toBeUndefined()
|
||||
})
|
||||
test('iteration should put nodes in details', () => {
|
||||
expect(format(simpleIterationData.in as any)).toEqual(simpleIterationData.output)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user