release: opensource snapshot 2026-02-27 19:25:00
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { hasDownstreamStoryboardData } from '@/app/[locale]/workspace/[projectId]/modes/novel-promotion/hooks/useRebuildConfirm'
|
||||
|
||||
describe('hasDownstreamStoryboardData', () => {
|
||||
it('returns false when storyboard and panel counts are both zero', () => {
|
||||
expect(hasDownstreamStoryboardData({ storyboardCount: 0, panelCount: 0 })).toBe(false)
|
||||
})
|
||||
|
||||
it('returns true when storyboard count is greater than zero', () => {
|
||||
expect(hasDownstreamStoryboardData({ storyboardCount: 1, panelCount: 0 })).toBe(true)
|
||||
})
|
||||
|
||||
it('returns true when panel count is greater than zero', () => {
|
||||
expect(hasDownstreamStoryboardData({ storyboardCount: 0, panelCount: 2 })).toBe(true)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user