mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-18 22:11:29 -04:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
35 lines
841 B
JavaScript
35 lines
841 B
JavaScript
import { RadioButtonSheet } from "components/SharedComponents";
|
|
import React from "react";
|
|
|
|
const mockHandleClose = jest.fn( );
|
|
const mockConfirm = jest.fn( );
|
|
const mockValues = [
|
|
{
|
|
value: "value 1",
|
|
label: "label 1",
|
|
description: "description 1",
|
|
},
|
|
{
|
|
value: "value 2",
|
|
label: "label 2",
|
|
description: "description 2",
|
|
},
|
|
];
|
|
|
|
describe( "RadioButtonSheet", () => {
|
|
it( "should not have accessibility errors", () => {
|
|
const sheet = (
|
|
<RadioButtonSheet
|
|
onPressClose={mockHandleClose}
|
|
confirm={mockConfirm}
|
|
headerText="header text"
|
|
radioValues={mockValues}
|
|
/>
|
|
);
|
|
|
|
// TODO: this errors because RadioButton from react-native-paper is not accessible
|
|
console.log( "typeof sheet :>> ", typeof sheet );
|
|
// expect( sheet ).toBeAccessible();
|
|
} );
|
|
} );
|