"use strict";

var _react = _interopRequireDefault(require("react"));
var _reactNative = require("react-native");
var _reactNative2 = require("@testing-library/react-native");
var _IOButton = _interopRequireDefault(require("../IOButton"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const onButtonPress = () => {
  _reactNative.Alert.alert("Alert", "Action triggered");
};
describe("Test Buttons Components", () => {
  it("IOButton Snapshot · Solid variant", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.default, {
      variant: "solid",
      label: "label",
      accessibilityLabel: "accessibilityLabel",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("IOButton Snapshot · Link variant", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.default, {
      variant: "link",
      label: "label",
      accessibilityLabel: "accessibilityLabel",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("IOButton Snapshot · Outline variant", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.default, {
      variant: "outline",
      label: "label",
      accessibilityLabel: "accessibilityLabel",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
});
//# sourceMappingURL=IOButton.test.js.map