Ratatoskr/src/app/phoneHit.call.test.ts
Void 351d1bc745
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m31s
Phone hit: call controls get their hit-area variants, with a test pinning them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 07:15:10 +00:00

15 lines
732 B
TypeScript

import { describe, it } from 'vitest';
import { expectPhoneHitClasses, expectSizeTie } from './phoneHitTestKit';
// Every IconButton of the call bars carries the phone hit-area variant of its drawn size, in source order
// (mic, sound, video, share, chat; the menu button; the call-status mic, sound, video, share).
describe('icon buttons in the call controls', () => {
it.each([
['features/call/Controls.tsx', Array(5).fill('PhoneHitSpread40')],
['features/call/CallControls.tsx', ['PhoneHitSpread40']],
['features/call-status/CallControl.tsx', Array(4).fill('PhoneHitSpread26')],
])('%s', (file, want) => {
expectPhoneHitClasses(file as string, want as string[]);
expectSizeTie(file as string);
});
});