"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var import_jsx_runtime = require("react/jsx-runtime");
var import_react = __toESM(require("react"));
var import_styled_components = __toESM(require("styled-components"));
var import_react_native = require("@testing-library/react-native");
var import__ = __toESM(require("../../../index.native"));
var import_base = require("../base.test");
describe("themeReader - web specs", () => {
  it("should render", () => {
    const Component = import_styled_components.default.View`
      border: ${import__.theme.borders.small}px solid;
    `;
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { testID: "component", children: "Teste" }) })
    );
    expect(toJSON().props.style).toEqual([
      { borderWidth: 1, borderColor: "black", borderStyle: "solid" }
    ]);
  });
  it("should render with conditional", () => {
    const Component = import_styled_components.default.View`
      border: ${({ borders }) => borders ? import_styled_components.css`
              ${import__.theme.borders.small}px solid
            ` : "none"};
    `;
    const { toJSON, rerender } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { borders: false, testID: "component", children: "Teste" }) })
    );
    expect(toJSON().props.style).toEqual([
      { borderWidth: 0, borderColor: "black", borderStyle: "solid" }
    ]);
    rerender(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { borders: true, "data-testid": "component" }) })
    );
    expect(toJSON().props.style).toEqual([
      { borderWidth: 1, borderColor: "black", borderStyle: "solid" }
    ]);
  });
});
