"use strict";

var _reactNative = require("react-native");
var _reactNative2 = require("@testing-library/react-native");
var _testing = require("../../../utils/testing");
var _Banner = require("../Banner");
var _jsxRuntime = require("react/jsx-runtime");
const onLinkPress = () => {
  _reactNative.Alert.alert("Alert", "Action triggered");
};
describe("Test Banner Components", () => {
  it("Banner Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Banner.Banner, {
      color: "neutral",
      title: "Banner title",
      pictogramName: "charity",
      action: "Action text",
      onPress: onLinkPress,
      accessibilityLabel: "Action text"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
});
describe("Test Banner Components - Experimental Enabled", () => {
  it("Banner Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Banner.Banner, {
      color: "neutral",
      title: "Banner title",
      pictogramName: "charity",
      action: "Action text",
      onPress: onLinkPress,
      accessibilityLabel: "Action text"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
});
//# sourceMappingURL=banner.test.js.map