release: opensource snapshot 2026-02-27 19:25:00

This commit is contained in:
saturn
2026-02-27 19:25:00 +08:00
commit 5de9622c8b
1055 changed files with 164772 additions and 0 deletions
@@ -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)
})
})