"use strict";

var _reactNative = require("@testing-library/react-native");
var _ClaimsSelector = require("../ClaimsSelector");
var _jsxRuntime = require("react/jsx-runtime");
describe("ClaimsSelector", () => {
  it("ClaimsSelector Snapshot (controlled)", () => {
    const {
      toJSON
    } = (0, _reactNative.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ClaimsSelector.ClaimsSelector, {
      title: "Patente di guida",
      selectedItemIds: ["name"],
      items: [{
        id: "name",
        value: "Mario Rossi",
        description: "Nome e cognome"
      }]
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ClaimsSelector Snapshot (uncontrolled)", () => {
    const {
      toJSON
    } = (0, _reactNative.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ClaimsSelector.ClaimsSelector, {
      title: "Patente di guida",
      items: [{
        id: "name",
        value: "Mario Rossi",
        description: "Nome e cognome"
      }]
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ClaimsSelector Snapshot (unselectable items)", () => {
    const {
      toJSON
    } = (0, _reactNative.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ClaimsSelector.ClaimsSelector, {
      title: "Patente di guida",
      selectionEnabled: false,
      items: [{
        id: "name",
        value: "Mario Rossi",
        description: "Nome e cognome"
      }]
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ClaimsSelector Snapshot (custom component)", () => {
    const {
      toJSON
    } = (0, _reactNative.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ClaimsSelector.ClaimsSelector, {
      title: "Patente di guida",
      selectionEnabled: false,
      items: [{
        id: "name",
        value: "data:image/png;base64,iVBORw0KGgoAAAANSUh",
        description: "Nome e cognome",
        type: "image"
      }]
    }));
    expect(toJSON()).toMatchSnapshot();
  });
});
//# sourceMappingURL=ClaimsSelector.test.js.map