mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-18 12:41:54 -04:00
19 lines
557 B
JavaScript
19 lines
557 B
JavaScript
import { render, screen } from "@testing-library/react-native";
|
|
import ContainedSquareButton from "components/SharedComponents/Buttons/ContainedSquareButton";
|
|
import React from "react";
|
|
import colors from "styles/tailwindColors";
|
|
|
|
describe( "ContainedSquareButton", () => {
|
|
it( "renders correctly", () => {
|
|
render(
|
|
<ContainedSquareButton
|
|
icon="magnifying-glass"
|
|
backgroundColor={colors.inatGreen}
|
|
accessibilityLabel="Search"
|
|
onPress={() => {}}
|
|
/>,
|
|
);
|
|
expect( screen ).toMatchSnapshot();
|
|
} );
|
|
} );
|