mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-02-02 10:01:28 -05:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
24 lines
684 B
JavaScript
24 lines
684 B
JavaScript
import { render, screen } from "@testing-library/react-native";
|
|
import AddObsBottomSheet from "components/AddObsBottomSheet/AddObsBottomSheet";
|
|
import React from "react";
|
|
|
|
// Make sure the mock is using a recent-ish version
|
|
jest.mock( "react-native/Libraries/Utilities/Platform", ( ) => ( {
|
|
__esModule: true,
|
|
default: {
|
|
OS: "ios",
|
|
select: jest.fn( ),
|
|
Version: 11,
|
|
},
|
|
} ) );
|
|
|
|
describe( "AddObsBottomSheet", ( ) => {
|
|
it( "shows the AI camera button", async ( ) => {
|
|
render( <AddObsBottomSheet closeModal={jest.fn( )} /> );
|
|
const aiCameraButton = screen.getByTestId(
|
|
"aicamera-button",
|
|
);
|
|
expect( aiCameraButton ).toBeOnTheScreen();
|
|
} );
|
|
} );
|