mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
[fix] Replace non-existent toBeOneOf test assertions with standard toBe(0)
This commit is contained in:
@@ -334,10 +334,10 @@ describe('LinkConnector Integration', () => {
|
||||
} = graph.getNodeById(nodeId)!
|
||||
|
||||
expect(input.link).toBeNull()
|
||||
expect(output.links?.length).toBeOneOf([0, undefined])
|
||||
expect(output.links?.length || 0).toBe(0)
|
||||
|
||||
expect(input._floatingLinks?.size).toBeOneOf([0, undefined])
|
||||
expect(output._floatingLinks?.size).toBeOneOf([0, undefined])
|
||||
expect(input._floatingLinks?.size || 0).toBe(0)
|
||||
expect(output._floatingLinks?.size || 0).toBe(0)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -534,10 +534,10 @@ describe('LinkConnector Integration', () => {
|
||||
} = graph.getNodeById(nodeId)!
|
||||
|
||||
expect(input.link).toBeNull()
|
||||
expect(output.links?.length).toBeOneOf([0, undefined])
|
||||
expect(output.links?.length || 0).toBe(0)
|
||||
|
||||
expect(input._floatingLinks?.size).toBeOneOf([0, undefined])
|
||||
expect(output._floatingLinks?.size).toBeOneOf([0, undefined])
|
||||
expect(input._floatingLinks?.size || 0).toBe(0)
|
||||
expect(output._floatingLinks?.size || 0).toBe(0)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -850,10 +850,10 @@ describe('LinkConnector Integration', () => {
|
||||
} = graph.getNodeById(nodeId)!
|
||||
|
||||
expect(input.link).toBeNull()
|
||||
expect(output.links?.length).toBeOneOf([0, undefined])
|
||||
expect(output.links?.length || 0).toBe(0)
|
||||
|
||||
expect(input._floatingLinks?.size).toBeOneOf([0, undefined])
|
||||
expect(output._floatingLinks?.size).toBeOneOf([0, undefined])
|
||||
expect(input._floatingLinks?.size || 0).toBe(0)
|
||||
expect(output._floatingLinks?.size || 0).toBe(0)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user