import { render, screen } from "@testing-library/react-native";
import React from "react";
import { Counter } from ".";
describe("Counter", () => {
const defaultProps = {
value: 42,
types: "default",
};
it("Snapshot", () => {
const { toJSON } = render();
expect(toJSON()).toMatchSnapshot();
});
it("Snapshot vairan defauly types", () => {
const { toJSON } = render();
expect(toJSON()).toMatchSnapshot();
});
it("Snapshot vairan defauly types", () => {
const { toJSON } = render();
expect(toJSON()).toMatchSnapshot();
});
it("Snapshot vairan bold types", () => {
const { toJSON } = render();
expect(toJSON()).toMatchSnapshot();
});
it("Snapshot vairan selected types", () => {
const { toJSON } = render();
expect(toJSON()).toMatchSnapshot();
});
it("Snapshot vairan md size", () => {
const { toJSON } = render();
expect(toJSON()).toMatchSnapshot();
});
it("Snapshot vairan sm size", () => {
const { toJSON } = render();
expect(toJSON()).toMatchSnapshot();
});
it("renders correctly with required props", () => {
render();
const number = screen.getByText("42");
expect(number).toBeDefined();
});
});