import { describe, expect, it } from 'vitest' import { shouldShowLaunchWeek16Banner } from './BannerLaunchWeek16.utils' const eligibleState = { isPlatform: true, isDismissalLoaded: true, isDismissed: false, now: Date.parse('2026-12-03T00:00:00Z'), } describe('shouldShowLaunchWeek16Banner', () => { it('shows the promotion on hosted Studio before the event ends', () => { expect(shouldShowLaunchWeek16Banner(eligibleState)).toBe(true) }) it.each([ { isPlatform: false }, { isDismissalLoaded: false }, { isDismissed: true }, { now: Date.parse('2026-12-12T08:00:00Z') }, ])('hides the promotion for ineligible state %o', (state) => { expect(shouldShowLaunchWeek16Banner({ ...eligibleState, ...state })).toBe(false) }) })