chore: Fix app
This commit is contained in:
@@ -24,13 +24,19 @@ describe('mobile-media-permission.rules', () => {
|
||||
expect(isMobileCapturePermissionGranted('denied')).toBe(false);
|
||||
});
|
||||
|
||||
it('requires microphone permission for voice capture', () => {
|
||||
it('only blocks voice capture on an explicit native denial', () => {
|
||||
expect(isVoiceCaptureAllowed({ microphone: 'granted' })).toBe(true);
|
||||
expect(isVoiceCaptureAllowed({ microphone: 'denied' })).toBe(false);
|
||||
// Dismissed dialogs ('prompt') defer to the WebView getUserMedia permission flow.
|
||||
expect(isVoiceCaptureAllowed({ microphone: 'prompt' })).toBe(true);
|
||||
expect(isVoiceCaptureAllowed({ microphone: 'prompt-with-rationale' })).toBe(true);
|
||||
expect(isVoiceCaptureAllowed({})).toBe(true);
|
||||
});
|
||||
|
||||
it('requires camera permission for camera capture', () => {
|
||||
it('only blocks camera capture on an explicit native denial', () => {
|
||||
expect(isCameraCaptureAllowed({ camera: 'granted' })).toBe(true);
|
||||
expect(isCameraCaptureAllowed({ camera: 'prompt' })).toBe(false);
|
||||
expect(isCameraCaptureAllowed({ camera: 'denied' })).toBe(false);
|
||||
expect(isCameraCaptureAllowed({ camera: 'prompt' })).toBe(true);
|
||||
expect(isCameraCaptureAllowed({})).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user