mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-02 04:02:20 +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')
|
||||
|
||||
Reference in New Issue
Block a user