Skip to content

Commit 92928c6

Browse files
committed
test: align workflow file metadata expectation
1 parent b31bc8c commit 92928c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/service/test/core/workflow/dispatch/utils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ describe('WorkflowVariableState file store conversion', () => {
811811
]);
812812
});
813813

814-
it('should persist all runtime urls as external files after an update', async () => {
814+
it('should preserve private file metadata when updating with its runtime url', async () => {
815815
const state = await createFileVariableState({
816816
files: [
817817
{
@@ -827,7 +827,7 @@ describe('WorkflowVariableState file store conversion', () => {
827827

828828
expect(state.toStoreRecord().files).toEqual([
829829
{
830-
url: runtimeUrls[0],
830+
key: 'chat/app/a.png',
831831
name: 'a.png',
832832
type: ChatFileTypeEnum.image
833833
},

0 commit comments

Comments
 (0)