import { dU as a, ct as i, gR as s, gZ as l, M as r, V as p, bh as c, bn as u, bo as g } from "./684d2f28.js";
import "react";
import "react-dom";
test("test string state control", () => {
  const o = {
    s1: a("s1Value")
  }, t = {
    ...o,
    s2: a("s2Value")
  }, n = {
    s1: a("s1Value")
  };
  let e = new i({
    value: "3{{s1}}"
  });
  e = s(e, o), expect(e.getView().value).toBe("3s1Value"), e = s(e.reduce(e.changeChildAction("value", "newx")), o), expect(e.getView().value).toBe("newx"), e = s(e, t), expect(e.getView().value).toBe("newx"), e = s(e, n), expect(e.getView().value).toBe("3s1Value");
});
test("test comp", () => {
  let o = function() {
    const e = {
      v1: l(["a"])
    };
    return new r(e, (d) => "a").setPropertyViewFn(() => /* @__PURE__ */ p(c, {})).build();
  }();
  o = u(o, [new g("v1")]);
  let t = new o({});
  t = s(t), t = s(t);
  let n = s(t);
  expect(t === n).toBeTruthy();
});
