mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 00:39:49 +00:00
test: Fix test failures after reactive feature flags implementation
- Update useFeatureFlags test to handle computed ref correctly - Update managerStateStore test to reflect new LEGACY_UI behavior - Remove unused isReactive import
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { isReactive, isReadonly } from 'vue'
|
||||
import { isReadonly } from 'vue'
|
||||
|
||||
import {
|
||||
ServerFeatureFlag,
|
||||
@@ -38,7 +38,9 @@ describe('useFeatureFlags', () => {
|
||||
const { flags } = useFeatureFlags()
|
||||
|
||||
expect(isReadonly(flags)).toBe(true)
|
||||
expect(isReactive(flags)).toBe(true)
|
||||
// computed returns a ComputedRef which is readonly but not reactive
|
||||
// The value inside is reactive though
|
||||
expect(flags.value).toBeDefined()
|
||||
})
|
||||
|
||||
it('should access supportsPreviewMetadata', () => {
|
||||
|
||||
Reference in New Issue
Block a user