ToolbarView.soundboard.test.tsx 763 o
Télécharger le fichier
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest';
describe('Toolbar Soundboard feedback', () => {
it('listens to room playback and applies the pulse to both layouts', () => {
const source = readFileSync(resolve(process.cwd(), 'src/components/toolbar/ToolbarView.tsx'), 'utf8');
expect(source).toContain('SoundboardRoomMessageEvent.ROOM_MESSAGE');
expect(source).toContain('700');
// Official 46px rail plus the touch bottom bar. Compact desktop no
// longer dumps extras into a side stack.
expect(source.match(/soundboardPulse \? 'animate-pulse'/g)).toHaveLength(2);
expect(source).not.toContain('compactDesktop');
});
});
