mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 02:02:08 +00:00
Consistently use -1 for temporary file size (#1464)
This commit is contained in:
@@ -191,7 +191,9 @@ describe('useUserFileStore', () => {
|
||||
expect(api.storeUserData).toHaveBeenCalledWith(
|
||||
'newfile.txt',
|
||||
'file content',
|
||||
{ throwOnError: true, full_info: true, overwrite: true }
|
||||
// SaveAs should create a new temporary file, which will mean
|
||||
// overwrite is false
|
||||
{ throwOnError: true, full_info: true, overwrite: false }
|
||||
)
|
||||
expect(newFile).toBeInstanceOf(UserFile)
|
||||
expect(newFile.path).toBe('newfile.txt')
|
||||
|
||||
@@ -25,7 +25,7 @@ describe('useWorkflowStore', () => {
|
||||
filenames.map((filename) => ({
|
||||
path: filename,
|
||||
modified: new Date().toISOString(),
|
||||
size: 1 // size !== 0 for remote workflows
|
||||
size: 1 // size !== -1 for remote workflows
|
||||
}))
|
||||
)
|
||||
return await store.syncWorkflows()
|
||||
|
||||
Reference in New Issue
Block a user