There was an error while loading. Please reload this page.
1 parent 1092b65 commit fa60435Copy full SHA for fa60435
1 file changed
cli/src/utils/__tests__/chat-header-animation.test.ts
@@ -0,0 +1,18 @@
1
+import { describe, expect, it } from 'bun:test'
2
+
3
+import { shouldAnimateChatHeader } from '../chat-header-animation'
4
5
+describe('shouldAnimateChatHeader', () => {
6
+ it('disables the sheen for the Freebuff chat header', () => {
7
+ expect(shouldAnimateChatHeader(true, true)).toBe(false)
8
+ })
9
10
+ it('keeps the Codebuff sheen when the header is active', () => {
11
+ expect(shouldAnimateChatHeader(true, false)).toBe(true)
12
13
14
+ it('does not animate an inactive header for either product', () => {
15
+ expect(shouldAnimateChatHeader(false, true)).toBe(false)
16
+ expect(shouldAnimateChatHeader(false, false)).toBe(false)
17
18
+})
0 commit comments