Files
iNaturalistReactNative/tests/unit/components/SharedComponents/Buttons/ContainedSquareButton.test.js
2026-06-11 23:41:45 -05:00

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();
} );
} );