Skip to content

Commit fa60435

Browse files
chore: refresh fix/freebuff-disable-chat-logo-animation onto current main
1 parent 1092b65 commit fa60435

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)