mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 17:18:40 +08:00
chore: add more tests
This commit is contained in:
parent
057da6c31b
commit
880496db0b
@ -2,8 +2,9 @@ import format from '.'
|
|||||||
import { simpleIterationData } from './data'
|
import { simpleIterationData } from './data'
|
||||||
|
|
||||||
describe('format api data to tracing panel 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', () => {
|
test('iteration should put nodes in details', () => {
|
||||||
expect(format(simpleIterationData.in as any)).toEqual(simpleIterationData.output)
|
expect(format(simpleIterationData.in as any)).toEqual(simpleIterationData.output)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user