mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 05:56:31 +08:00
fix: correct flushFileReader helper to avoid infinite recursion
Co-authored-by: hyoban <38493346+hyoban@users.noreply.github.com>
This commit is contained in:
parent
34d7f8eceb
commit
c257721f10
@ -153,7 +153,7 @@ describe('UpdateDSLModal', () => {
|
||||
|
||||
// Helper function to flush FileReader microtasks
|
||||
const flushFileReader = async () => {
|
||||
await flushFileReader()
|
||||
await new Promise<void>(resolve => queueMicrotask(resolve))
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user