mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 01:39:47 +00:00
fix bad re.lastIndex usage
This commit is contained in:
@@ -11,6 +11,13 @@ describe('evalAst via evaluateCondition', () => {
|
||||
store = useContextKeyStore()
|
||||
})
|
||||
|
||||
it('evaluates logical OR correctly', () => {
|
||||
store.setContextKey('a', true)
|
||||
store.setContextKey('b', false)
|
||||
const result = store.evaluateCondition('a || b')
|
||||
expect(result).toBe(true)
|
||||
})
|
||||
|
||||
it('evaluates logical AND and NOT correctly', () => {
|
||||
store.setContextKey('a', true)
|
||||
store.setContextKey('b', false)
|
||||
|
||||
Reference in New Issue
Block a user